[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (363.4ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1482.9ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[35m (0.1ms)[0m [1m[36m (0.3ms)[0m [1mBEGIN[0m 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 [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1m[0m [1m[35m (0.1ms)[0m [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1m[0m [1m[35m (0.1ms)[0m [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1m[0m [1m[35m (0.1ms)[0m [1m[36m (0.1ms)[0m [1mBEGIN[0m 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 [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1m[0m [1m[35m (0.1ms)[0m [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1m[0m [1m[35m (0.1ms)[0m [1m[36m (0.3ms)[0m [1mBEGIN[0m 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 [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1m[0m [1m[35m (0.1ms)[0m [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1m[0m [1m[35m (0.1ms)[0m [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1m[0m [1m[35m (0.1ms)[0m [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1m[0m [1m[35m (0.1ms)[0m [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1m[0m [1m[35m (0.1ms)[0m [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1m[0m [1m[35m (0.1ms)[0m [1m[36m (0.1ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1m[0m [1m[35m (0.1ms)[0m [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1m[0m [1m[35m (0.1ms)[0m [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1m[0m [1m[35m (0.1ms)[0m [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1m[0m [1m[35m (0.1ms)[0m [1m[36m (0.3ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1m[0m [1m[35m (0.1ms)[0m [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1m[0m [1m[35m (0.1ms)[0m [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.3ms)[0m [1m[0m [1m[36m (183.1ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1454.1ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36m (198.9ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1465.8ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36m (278.3ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (2169.5ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36m (193.1ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1206.7ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36m (182.5ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1301.9ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36m (228.5ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1003.6ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (0.5ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (78.8ms)[0m 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) [1m[36m (4.0ms)[0m [1mCREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")[0m [1m[35m (6.7ms)[0m 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) [1m[36m (6.1ms)[0m [1mCREATE 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) [0m [1m[35m (2.0ms)[0m CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id") [1m[36m (6.1ms)[0m [1mCREATE 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) [0m [1m[35m (3.4ms)[0m CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id") [1m[36m (6.8ms)[0m [1mCREATE 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) [0m [1m[35m (2.2ms)[0m CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id") [1m[36m (8.7ms)[0m [1mCREATE 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) [0m [1m[35m (2.0ms)[0m CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id") [1m[36m (6.8ms)[0m [1mCREATE 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) [0m [1m[35m (2.3ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id") [1m[36m (6.5ms)[0m [1mCREATE 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) [0m [1m[35m (2.4ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id") [1m[36m (2.3ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")[0m [1m[35m (8.0ms)[0m ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (3.2ms)[0m [1mALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (3.1ms)[0m ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (2.5ms)[0m [1mALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (2.6ms)[0m ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (2.8ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.4ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (3.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m [1m[35m (2.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.4ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (136.5ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1338.6ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (0.5ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (15.4ms)[0m 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) [1m[36m (2.3ms)[0m [1mCREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")[0m [1m[35m (9.3ms)[0m 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) [1m[36m (7.1ms)[0m [1mCREATE 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) [0m [1m[35m (2.0ms)[0m CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id") [1m[36m (6.9ms)[0m [1mCREATE 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) [0m [1m[35m (2.2ms)[0m CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id") [1m[36m (7.3ms)[0m [1mCREATE 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) [0m [1m[35m (2.1ms)[0m CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id") [1m[36m (6.5ms)[0m [1mCREATE 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) [0m [1m[35m (2.2ms)[0m CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id") [1m[36m (8.0ms)[0m [1mCREATE 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) [0m [1m[35m (2.5ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id") [1m[36m (15.9ms)[0m [1mCREATE 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) [0m [1m[35m (12.9ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id") [1m[36m (2.5ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")[0m [1m[35m (4.1ms)[0m ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (7.4ms)[0m [1mALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (4.0ms)[0m ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (3.6ms)[0m [1mALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (2.7ms)[0m ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (2.6ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.8ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (4.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m [1m[35m (2.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.7ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150615160631') [1m[35mActiveRecord::SchemaMigration Load (0.6ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (5.2ms)[0m [1mSELECT 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 [0m [1m[35m (4.4ms)[0m 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 [1m[36m (4.4ms)[0m [1mSELECT 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 [0m [1m[35m (4.4ms)[0m 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 [1m[36m (4.3ms)[0m [1mSELECT 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 [0m [1m[35m (4.2ms)[0m 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 [1m[36m (4.3ms)[0m [1mSELECT 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 [0m [1m[35m (4.3ms)[0m 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 [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (119.0ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1011.5ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (0.5ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (14.7ms)[0m 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) [1m[36m (2.4ms)[0m [1mCREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")[0m [1m[35m (6.6ms)[0m 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) [1m[36m (6.5ms)[0m [1mCREATE 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) [0m [1m[35m (4.2ms)[0m CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id") [1m[36m (6.7ms)[0m [1mCREATE 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) [0m [1m[35m (2.4ms)[0m CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id") [1m[36m (6.3ms)[0m [1mCREATE 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) [0m [1m[35m (2.3ms)[0m CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id") [1m[36m (6.5ms)[0m [1mCREATE 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) [0m [1m[35m (2.4ms)[0m CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id") [1m[36m (6.6ms)[0m [1mCREATE 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) [0m [1m[35m (2.3ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id") [1m[36m (6.0ms)[0m [1mCREATE 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) [0m [1m[35m (2.0ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id") [1m[36m (2.0ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")[0m [1m[35m (4.6ms)[0m ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (3.3ms)[0m [1mALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (2.7ms)[0m ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (3.1ms)[0m [1mALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (2.9ms)[0m ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (3.0ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.5ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (3.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m [1m[35m (2.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.5ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150615160631') [1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (10.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m [1m[35m (3.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m Migrating to CreateInitialDb (20150615160631) [1m[35m (0.3ms)[0m BEGIN [1m[36m (8.2ms)[0m [1mCREATE 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) [0m [1m[35m (1.5ms)[0m CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" ("parent_id") [1m[36m (5.3ms)[0m [1mCREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m [1m[35m (6.5ms)[0m 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) [1m[36m (1.5ms)[0m [1mCREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" ("page_id")[0m [1m[35m (2.8ms)[0m ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (5.7ms)[0m [1mCREATE 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) [0m [1m[35m (2.4ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" ("page_block_id") [1m[36m (1.9ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" ("image_id")[0m [1m[35m (1.9ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (1.8ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (6.3ms)[0m 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) [1m[36m (1.4ms)[0m [1mCREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" ("page_block_id")[0m [1m[35m (2.6ms)[0m ALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (24.9ms)[0m [1mCREATE 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) [0m [1m[35m (1.6ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" ("page_block_id") [1m[36m (1.8ms)[0m [1mALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (5.5ms)[0m 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) [1m[36m (1.4ms)[0m [1mCREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" ("page_id")[0m [1m[35m (1.9ms)[0m ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (5.5ms)[0m [1mCREATE 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) [0m [1m[35m (1.2ms)[0m CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" ("image_id") [1m[36m (1.9ms)[0m [1mALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150615160631"]] [1m[36m (2.7ms)[0m [1mCOMMIT[0m [1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (4.8ms)[0m [1mSELECT 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 [0m [1m[35m (4.3ms)[0m 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 [1m[36m (4.3ms)[0m [1mSELECT 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 [0m [1m[35m (4.5ms)[0m 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 [1m[36m (7.7ms)[0m [1mSELECT 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 [0m [1m[35m (4.7ms)[0m 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 [1m[36m (4.4ms)[0m [1mSELECT 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 [0m [1m[35m (4.3ms)[0m 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 [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (119.0ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1126.2ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (10.4ms)[0m 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) [1m[36m (2.4ms)[0m [1mCREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")[0m [1m[35m (7.8ms)[0m 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) [1m[36m (7.1ms)[0m [1mCREATE 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) [0m [1m[35m (2.1ms)[0m CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id") [1m[36m (6.9ms)[0m [1mCREATE 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) [0m [1m[35m (2.3ms)[0m CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id") [1m[36m (7.7ms)[0m [1mCREATE 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) [0m [1m[35m (2.4ms)[0m CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id") [1m[36m (8.0ms)[0m [1mCREATE 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) [0m [1m[35m (2.0ms)[0m CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id") [1m[36m (6.4ms)[0m [1mCREATE 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) [0m [1m[35m (2.3ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id") [1m[36m (7.1ms)[0m [1mCREATE 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) [0m [1m[35m (2.4ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id") [1m[36m (2.5ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")[0m [1m[35m (3.7ms)[0m ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (3.2ms)[0m [1mALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (3.0ms)[0m ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (3.6ms)[0m [1mALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (2.7ms)[0m ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (2.6ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.4ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (26.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m [1m[35m (14.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (1.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150615160631') [1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (5.6ms)[0m [1mSELECT 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 [0m [1m[35m (5.6ms)[0m 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 [1m[36m (5.4ms)[0m [1mSELECT 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 [0m [1m[35m (5.1ms)[0m 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 [1m[36m (5.4ms)[0m [1mSELECT 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 [0m [1m[35m (5.7ms)[0m 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 [1m[36m (4.7ms)[0m [1mSELECT 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 [0m [1m[35m (4.3ms)[0m 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 [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (119.0ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1308.0ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (0.6ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (9.9ms)[0m 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) [1m[36m (2.1ms)[0m [1mCREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")[0m [1m[35m (6.6ms)[0m 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) [1m[36m (6.6ms)[0m [1mCREATE 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) [0m [1m[35m (8.5ms)[0m CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id") [1m[36m (20.0ms)[0m [1mCREATE 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) [0m [1m[35m (9.7ms)[0m CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id") [1m[36m (15.0ms)[0m [1mCREATE 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) [0m [1m[35m (49.0ms)[0m CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id") [1m[36m (185.9ms)[0m [1mCREATE 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) [0m [1m[35m (1.9ms)[0m CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id") [1m[36m (6.7ms)[0m [1mCREATE 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) [0m [1m[35m (2.1ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id") [1m[36m (6.5ms)[0m [1mCREATE 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) [0m [1m[35m (16.0ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id") [1m[36m (2.6ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")[0m [1m[35m (3.6ms)[0m ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (3.3ms)[0m [1mALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (2.8ms)[0m ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (2.8ms)[0m [1mALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (2.4ms)[0m ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (4.2ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.6ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (3.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m [1m[35m (2.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.6ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150615160631') [1m[35mActiveRecord::SchemaMigration Load (0.7ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (117.8ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1102.7ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (0.5ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (9.9ms)[0m 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) [1m[36m (4.4ms)[0m [1mCREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")[0m [1m[35m (11.1ms)[0m 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) [1m[36m (7.0ms)[0m [1mCREATE 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) [0m [1m[35m (3.4ms)[0m CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id") [1m[36m (5.8ms)[0m [1mCREATE 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) [0m [1m[35m (13.2ms)[0m CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id") [1m[36m (6.8ms)[0m [1mCREATE 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) [0m [1m[35m (2.5ms)[0m CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id") [1m[36m (7.3ms)[0m [1mCREATE 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) [0m [1m[35m (2.0ms)[0m CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id") [1m[36m (6.4ms)[0m [1mCREATE 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) [0m [1m[35m (2.5ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id") [1m[36m (6.1ms)[0m [1mCREATE 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) [0m [1m[35m (2.6ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id") [1m[36m (2.1ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")[0m [1m[35m (3.7ms)[0m ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (3.0ms)[0m [1mALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (2.7ms)[0m ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (2.7ms)[0m [1mALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (3.4ms)[0m ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (2.7ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.5ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (3.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m [1m[35m (2.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.5ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150615160631') [1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36mActiveRecord::SchemaMigration Load (1.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (116.0ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1050.2ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (9.8ms)[0m 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) [1m[36m (2.2ms)[0m [1mCREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")[0m [1m[35m (6.6ms)[0m 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) [1m[36m (7.4ms)[0m [1mCREATE 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) [0m [1m[35m (2.5ms)[0m CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id") [1m[36m (5.8ms)[0m [1mCREATE 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) [0m [1m[35m (2.5ms)[0m CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id") [1m[36m (6.6ms)[0m [1mCREATE 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) [0m [1m[35m (2.4ms)[0m CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id") [1m[36m (6.5ms)[0m [1mCREATE 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) [0m [1m[35m (3.2ms)[0m CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id") [1m[36m (7.0ms)[0m [1mCREATE 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) [0m [1m[35m (4.6ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id") [1m[36m (6.3ms)[0m [1mCREATE 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) [0m [1m[35m (3.4ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id") [1m[36m (2.3ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")[0m [1m[35m (4.7ms)[0m ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (3.2ms)[0m [1mALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (2.9ms)[0m ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (2.8ms)[0m [1mALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (2.5ms)[0m ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (2.9ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.6ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (3.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m [1m[35m (2.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.6ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150615160631') [1m[35mActiveRecord::SchemaMigration Load (0.6ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (117.1ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1190.8ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (9.8ms)[0m 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) [1m[36m (2.5ms)[0m [1mCREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")[0m [1m[35m (8.0ms)[0m 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) [1m[36m (7.4ms)[0m [1mCREATE 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) [0m [1m[35m (2.2ms)[0m CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id") [1m[36m (7.3ms)[0m [1mCREATE 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) [0m [1m[35m (2.2ms)[0m CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id") [1m[36m (8.3ms)[0m [1mCREATE 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) [0m [1m[35m (2.3ms)[0m CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id") [1m[36m (6.5ms)[0m [1mCREATE 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) [0m [1m[35m (2.4ms)[0m CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id") [1m[36m (6.8ms)[0m [1mCREATE 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) [0m [1m[35m (3.2ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id") [1m[36m (6.5ms)[0m [1mCREATE 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) [0m [1m[35m (2.5ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id") [1m[36m (2.4ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")[0m [1m[35m (5.0ms)[0m ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (3.0ms)[0m [1mALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (2.9ms)[0m ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (2.6ms)[0m [1mALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (2.7ms)[0m ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (3.6ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (3.2ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (3.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m [1m[35m (2.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.5ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150615160631') [1m[35mActiveRecord::SchemaMigration Load (0.6ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (5.8ms)[0m [1mSELECT 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 [0m [1m[35m (4.6ms)[0m 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 [1m[36m (4.9ms)[0m [1mSELECT 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 [0m [1m[35m (4.8ms)[0m 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 [1m[36m (5.0ms)[0m [1mSELECT 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 [0m [1m[35m (5.8ms)[0m 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 [1m[36m (4.6ms)[0m [1mSELECT 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 [0m [1m[35m (5.0ms)[0m 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 [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (120.4ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1473.5ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (13.1ms)[0m 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) [1m[36m (2.0ms)[0m [1mCREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")[0m [1m[35m (6.3ms)[0m 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) [1m[36m (6.3ms)[0m [1mCREATE 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) [0m [1m[35m (2.3ms)[0m CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id") [1m[36m (7.0ms)[0m [1mCREATE 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) [0m [1m[35m (2.8ms)[0m CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id") [1m[36m (8.5ms)[0m [1mCREATE 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) [0m [1m[35m (2.4ms)[0m CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id") [1m[36m (6.2ms)[0m [1mCREATE 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) [0m [1m[35m (2.1ms)[0m CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id") [1m[36m (6.7ms)[0m [1mCREATE 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) [0m [1m[35m (4.9ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id") [1m[36m (9.2ms)[0m [1mCREATE 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) [0m [1m[35m (3.3ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id") [1m[36m (2.9ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")[0m [1m[35m (3.6ms)[0m ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (3.1ms)[0m [1mALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (3.1ms)[0m ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (2.6ms)[0m [1mALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (2.6ms)[0m ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (2.7ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.4ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (4.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m [1m[35m (2.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.4ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150615160631') [1m[35mActiveRecord::SchemaMigration Load (0.6ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (177.4ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1129.3ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (0.5ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (10.5ms)[0m 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) [1m[36m (2.3ms)[0m [1mCREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")[0m [1m[35m (6.8ms)[0m 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) [1m[36m (6.5ms)[0m [1mCREATE 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) [0m [1m[35m (1.9ms)[0m CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id") [1m[36m (6.0ms)[0m [1mCREATE 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) [0m [1m[35m (2.7ms)[0m CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id") [1m[36m (10.1ms)[0m [1mCREATE 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) [0m [1m[35m (2.4ms)[0m CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id") [1m[36m (6.2ms)[0m [1mCREATE 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) [0m [1m[35m (1.9ms)[0m CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id") [1m[36m (6.7ms)[0m [1mCREATE 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) [0m [1m[35m (2.1ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id") [1m[36m (7.3ms)[0m [1mCREATE 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) [0m [1m[35m (2.4ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id") [1m[36m (2.7ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")[0m [1m[35m (3.4ms)[0m ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (3.1ms)[0m [1mALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (2.7ms)[0m ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (2.8ms)[0m [1mALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (2.7ms)[0m ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (2.8ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.5ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (3.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m [1m[35m (2.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.7ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150615160631') [1m[35mActiveRecord::SchemaMigration Load (0.6ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (118.9ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1033.9ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (0.5ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (10.5ms)[0m 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) [1m[36m (2.8ms)[0m [1mCREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")[0m [1m[35m (6.9ms)[0m 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) [1m[36m (6.6ms)[0m [1mCREATE 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) [0m [1m[35m (2.5ms)[0m CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id") [1m[36m (120.6ms)[0m [1mCREATE 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) [0m [1m[35m (3.0ms)[0m CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id") [1m[36m (7.0ms)[0m [1mCREATE 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) [0m [1m[35m (2.2ms)[0m CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id") [1m[36m (6.6ms)[0m [1mCREATE 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) [0m [1m[35m (2.0ms)[0m CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id") [1m[36m (6.5ms)[0m [1mCREATE 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) [0m [1m[35m (2.0ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id") [1m[36m (8.1ms)[0m [1mCREATE 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) [0m [1m[35m (2.0ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id") [1m[36m (3.1ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")[0m [1m[35m (3.8ms)[0m ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (3.5ms)[0m [1mALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (2.9ms)[0m ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (2.8ms)[0m [1mALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (3.0ms)[0m ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (2.9ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.9ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (3.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m [1m[35m (2.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.5ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150615160631') [1m[35mActiveRecord::SchemaMigration Load (0.6ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (191.5ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1456.7ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (12.5ms)[0m 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) [1m[36m (2.0ms)[0m [1mCREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")[0m [1m[35m (6.4ms)[0m 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) [1m[36m (6.5ms)[0m [1mCREATE 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) [0m [1m[35m (2.5ms)[0m CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id") [1m[36m (6.2ms)[0m [1mCREATE 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) [0m [1m[35m (3.6ms)[0m CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id") [1m[36m (6.8ms)[0m [1mCREATE 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) [0m [1m[35m (2.1ms)[0m CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id") [1m[36m (6.1ms)[0m [1mCREATE 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) [0m [1m[35m (2.1ms)[0m CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id") [1m[36m (7.7ms)[0m [1mCREATE 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) [0m [1m[35m (2.2ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id") [1m[36m (6.7ms)[0m [1mCREATE 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) [0m [1m[35m (2.4ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id") [1m[36m (2.2ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")[0m [1m[35m (3.4ms)[0m ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (3.0ms)[0m [1mALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (3.0ms)[0m ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (3.0ms)[0m [1mALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (2.9ms)[0m ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (2.7ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.6ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (3.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m [1m[35m (2.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.5ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (34.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (14.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.5ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (19.7ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (4.3ms)[0m [1mALTER 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[0m [1m[35m (2.3ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.0ms)[0m [1mALTER 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[0m [1m[35m (2.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.1ms)[0m [1mALTER 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[0m [1m[35m (2.3ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.5ms)[0m 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') [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (4.0ms)[0m [1mALTER 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[0m [1m[35m (2.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.1ms)[0m [1mALTER 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[0m [1m[35m (2.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (1.9ms)[0m [1mALTER 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[0m [1m[35m (2.3ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.0ms)[0m [1mALTER 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[0m [1m[35m (3.2ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (1.9ms)[0m [1mALTER 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[0m [1m[35m (2.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (1.9ms)[0m [1mALTER 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[0m [1m[35m (2.7ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (1.9ms)[0m [1mALTER 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[0m [1m[35m (7.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (1.9ms)[0m [1mALTER 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[0m [1m[35m (2.4ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (1.9ms)[0m [1mALTER 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[0m [1m[35m (2.4ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (1.9ms)[0m [1mALTER 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[0m [1m[35m (2.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (2.0ms)[0m [1mALTER 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[0m [1m[35m (2.4ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (1.9ms)[0m [1mALTER 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[0m [1m[35m (2.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (1.9ms)[0m [1mALTER 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[0m [1m[35m (2.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (1.9ms)[0m [1mALTER 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[0m [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (3.3ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (11.7ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (2.4ms)[0m 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 [1m[36m (2.4ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_articles"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_jumbotrons" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.1ms)[0m [1mALTER 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[0m [1m[35m (3.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (2.0ms)[0m 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 [1m[36m (2.4ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_articles"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_jumbotrons" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (2.9ms)[0m [1mALTER 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[0m [1m[35m (8.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (1.0ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (2.5ms)[0m 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 [1m[36m (2.4ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_articles"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_jumbotrons" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.1ms)[0m [1mALTER 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[0m [1m[35m (2.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (2.0ms)[0m 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 [1m[36m (2.2ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_articles"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_jumbotrons" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.0ms)[0m [1mALTER 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[0m [1m[35m (2.7ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (2.6ms)[0m 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 [1m[36m (2.3ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_articles"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_jumbotrons" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (1.9ms)[0m [1mALTER 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[0m [1m[35m (2.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (1.9ms)[0m 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 [1m[36m (2.3ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_articles"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_jumbotrons" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.0ms)[0m [1mALTER 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[0m [1m[35m (2.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (1.9ms)[0m 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 [1m[36m (3.3ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_articles"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_jumbotrons" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (1.9ms)[0m [1mALTER 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[0m [1m[35m (2.3ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (1.8ms)[0m 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 [1m[36m (2.6ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_articles"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_jumbotrons" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (1.9ms)[0m [1mALTER 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[0m [1m[35m (2.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (1.9ms)[0m 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 [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (3.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.6ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_thumbnails" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.0ms)[0m [1mCOMMIT[0m [1m[35m (3.3ms)[0m 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 [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ 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) [1m[35m (0.4ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (30.7ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-15 16:56:44.977476"], ["updated_at", "2015-06-15 16:56:44.977476"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- 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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.3ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Completed 500 Internal Server Error in 31ms (ActiveRecord: 0.4ms) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ 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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered -------------------------------------------------- [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------ [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------ [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m 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"} [1m[36mPagesCms::Page Load (0.9ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered -------------------------------------------------- [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (3.2ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (19.9ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.6ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (10.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_thumbnails" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.1ms)[0m [1mCOMMIT[0m [1m[35m (2.2ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (1.0ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-15 16:58:26.207287"], ["updated_at", "2015-06-15 16:58:26.207287"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.4ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] Completed 500 Internal Server Error in 103ms (ActiveRecord: 0.8ms) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- 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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered -------------------------------------------------- [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------ 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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- 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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.5ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.4ms) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.4ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------ [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered -------------------------------------------------- [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (3.1ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (19.7ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (1.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_thumbnails" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.3ms)[0m [1mCOMMIT[0m [1m[35m (2.0ms)[0m 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 [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered -------------------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ 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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (1.0ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-15 16:59:50.269630"], ["updated_at", "2015-06-15 16:59:50.269630"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- 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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m 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"} [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.7ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.6ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.7ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered -------------------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (3.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_thumbnails" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (2.4ms)[0m [1mCOMMIT[0m [1m[35m (2.3ms)[0m 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 [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "content_rendered", "content", "tags", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered -------------------------------------------------- [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (1.0ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.9ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered -------------------------------------------------- [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_jumbotrons" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Page Load (0.6ms)[0m 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"} [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ 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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (2.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.9ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_thumbnails" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.1ms)[0m [1mCOMMIT[0m [1m[35m (2.1ms)[0m 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 [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.5ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.8ms)[0m 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m 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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered -------------------------------------------------- [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Page Load (0.9ms)[0m 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"} [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::PageBlock Load (0.4ms)[0m 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]] [1m[36mPagesCms::Jumbotron Load (0.4ms)[0m [1mSELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::TextBox Load (0.4ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.3ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Page Load (0.9ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "content_rendered", "content", "tags", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered -------------------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (23.4ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_thumbnails" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (4.2ms)[0m [1mCOMMIT[0m [1m[35m (7.3ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.5ms)[0m 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"} [1m[36mPagesCms::Article Load (0.7ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36m (0.6ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered -------------------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (1.0ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-15 17:02:56.968345"], ["updated_at", "2015-06-15 17:02:56.968345"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.4ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::Jumbotron Load (0.4ms)[0m SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::TextBox Load (0.4ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.3ms)[0m 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[36mPagesCms::Page Load (1.1ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered -------------------------------------------------- [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.4ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (3.4ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.5ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_thumbnails" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.1ms)[0m [1mCOMMIT[0m [1m[35m (2.2ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[36mPagesCms::Article Load (0.8ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m 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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Article Load (0.6ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered -------------------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (3.7ms)[0m 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"]] [1m[36m (0.9ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------ [1m[35m (0.5ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (1.0ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.6ms)[0m [1mROLLBACK[0m [1m[35m (2.5ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.8ms)[0m [1mROLLBACK[0m [1m[35m (0.4ms)[0m BEGIN ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------ [1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m 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"]] [1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m ROLLBACK [1m[36m (1.4ms)[0m [1mBEGIN[0m -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered -------------------------------------------------- [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.4ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::Jumbotron Load (0.4ms)[0m SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::TextBox Load (0.3ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.3ms)[0m 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[36mPagesCms::Page Load (1.0ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (0.7ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-15 17:05:50.731341"], ["updated_at", "2015-06-15 17:05:50.731341"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (3.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (19.3ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.7ms)[0m 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') [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (12.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_thumbnails" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.0ms)[0m [1mCOMMIT[0m [1m[35m (2.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.4ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::Jumbotron Load (0.4ms)[0m SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::TextBox Load (0.3ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.4ms)[0m 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[36mPagesCms::Page Load (0.8ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.8ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered -------------------------------------------------- [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_jumbotrons" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.4ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered -------------------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (17.4ms) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (0.9ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.5ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.6ms)[0m 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"} [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.9ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m Rendered pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (13.9ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] Rendered layouts/pages_cms/_header.html.erb (6.4ms) Completed 200 OK in 26ms (Views: 23.6ms | ActiveRecord: 2.1ms) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (2.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (19.7ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (2.7ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_thumbnails" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (1.1ms)[0m [1mCOMMIT[0m [1m[35m (2.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Image Load (0.6ms)[0m 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) [1m[36mPagesCms::Page Load (1.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m 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) [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[36mPagesCms::Article Load (0.9ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m Rendered pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (9.4ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] Rendered layouts/pages_cms/_header.html.erb (5.3ms) Completed 200 OK in 32ms (Views: 29.6ms | ActiveRecord: 2.3ms) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered -------------------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered -------------------------------------------------- [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.6ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" Rendered pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (13.5ms) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (1.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1[0m [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (1.0ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1[0m [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.4ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "content_rendered", "content", "tags", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.4ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.4ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.8ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::Jumbotron Load (0.4ms)[0m SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::TextBox Load (0.3ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.3ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m Rendered pages_cms/admin/pages/_jumbotron_fields.html.haml (5.6ms) Rendered pages_cms/admin/pages/_text_box_fields.html.haml (2.7ms) [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m Rendered pages_cms/admin/pages/_thumbnail_fields.html.haml (6.3ms) Rendered pages_cms/admin/pages/_page_block_fields.html.haml (43.1ms) [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.8ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m 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) [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (1.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (7.3ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (19.1ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.8ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (1.1ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.1ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.5ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (1.2ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (1.0ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.4ms)[0m DELETE FROM "pages_cms_thumbnails" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.6ms)[0m 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) [1m[36m (1.2ms)[0m [1mCOMMIT[0m [1m[35m (2.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.9ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (1.7ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered -------------------------------------------------- [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_jumbotrons" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.5ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::PageBlock Load (0.6ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::Jumbotron Load (0.6ms)[0m SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::TextBox Load (0.3ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.4ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.8ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.6ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[36mPagesCms::Page Load (1.1ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.6ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.7ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.7ms)[0m 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"} [1m[36mPagesCms::Article Load (0.7ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (1.0ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (1.0ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.6ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Article Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered -------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (3.4ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (30.8ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (11.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_thumbnails" [1m[36mFixture Insert (7.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (1.1ms)[0m [1mCOMMIT[0m [1m[35m (2.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered -------------------------------------------------- [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_jumbotrons" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.4ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::Jumbotron Load (0.4ms)[0m SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::TextBox Load (0.3ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.4ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.7ms)[0m 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) [1m[36mPagesCms::Page Load (0.9ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[36mPagesCms::Page Load (1.0ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.8ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered -------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.5ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (11.2ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (1.1ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.8ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[36mPagesCms::Image Load (1.2ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "content_rendered", "content", "tags", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (1.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (1.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (1.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (19.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (8.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.7ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.1ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "pages_cms_thumbnails" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.2ms)[0m [1mCOMMIT[0m [1m[35m (2.1ms)[0m 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 [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Article Load (0.7ms)[0m 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) [1m[36mPagesCms::Page Load (1.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.3ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.8ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (1.1ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered -------------------------------------------------- [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_jumbotrons" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered -------------------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.4ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.4ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::Jumbotron Load (0.4ms)[0m SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::TextBox Load (0.3ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.4ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.8ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[36mPagesCms::Page Load (1.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (24.7ms) [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (7.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (51.2ms)[0m 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 [1m[36m (0.4ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (19.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (1.0ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.4ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_thumbnails" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.3ms)[0m [1mCOMMIT[0m [1m[35m (2.1ms)[0m 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 [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered -------------------------------------------------- [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.4ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------ [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered -------------------------------------------------- [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML [1m[36mPagesCms::Image Load (0.8ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35m (0.5ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------ [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.7ms)[0m 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"} [1m[36mPagesCms::Article Load (0.6ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.6ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m 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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Page Load (0.9ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.4ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (12.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::Jumbotron Load (0.5ms)[0m SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::TextBox Load (0.4ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.4ms)[0m 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[36mPagesCms::Page Load (0.8ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (24.9ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (1.0ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1[0m [1m[35m (0.3ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (11.4ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (16.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (1.7ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_thumbnails" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (20.9ms)[0m [1mCOMMIT[0m [1m[35m (2.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.4ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.3ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[36mPagesCms::Article Load (0.6ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (26.8ms) [1m[35mPagesCms::Page Load (1.0ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.3ms)[0m 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"} [1m[36mPagesCms::Article Load (0.3ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.6ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m 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"} [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.9ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::PageBlock Load (0.5ms)[0m 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]] [1m[36mPagesCms::Jumbotron Load (0.5ms)[0m [1mSELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::TextBox Load (0.4ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.5ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.7ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (1.4ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (402.1ms) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Page Load (0.8ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------ [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------ [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered -------------------------------------------------- [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (1.6ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1[0m [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered -------------------------------------------------- [1m[35m (0.1ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (3.0ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_thumbnails" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.5ms)[0m [1mCOMMIT[0m [1m[35m (2.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Page Load (0.5ms)[0m 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"} [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.5ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.8ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::PageBlock Load (0.6ms)[0m 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]] [1m[36mPagesCms::Jumbotron Load (0.5ms)[0m [1mSELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::TextBox Load (0.5ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.4ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.7ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (1.0ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (555.9ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.4ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Page Load (0.8ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35m (0.4ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.9ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-15 22:16:09.893343"], ["updated_at", "2015-06-15 22:16:09.893343"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered -------------------------------------------------- [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------ [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (15.7ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------ [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.3ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered -------------------------------------------------- [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.3ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Article Load (1.0ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Article Load (0.8ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (7.8ms)[0m 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 [1m[36m (0.4ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.7ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (18.1ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (16.9ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_thumbnails" [1m[36mFixture Insert (12.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (9.1ms)[0m [1mCOMMIT[0m [1m[35m (4.2ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered -------------------------------------------------- [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML [1m[35mPagesCms::Image Load (0.7ms)[0m 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) [1m[36mPagesCms::Page Load (0.8ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m 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"} [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.5ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::PageBlock Load (0.5ms)[0m 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]] [1m[36mPagesCms::Jumbotron Load (0.7ms)[0m [1mSELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::TextBox Load (0.4ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.4ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.9ms)[0m 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) [1m[36mPagesCms::Image Load (0.6ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.8ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (302.8ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Page Load (0.8ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.3ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered -------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_jumbotrons" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.6ms)[0m 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"} [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.9ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (11.3ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.9ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (157.9ms)[0m 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') [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.6ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (1.7ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_thumbnails" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36m (1.3ms)[0m [1mCOMMIT[0m [1m[35m (4.3ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Image Load (0.9ms)[0m 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) [1m[36mPagesCms::Page Load (0.8ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[36mPagesCms::Article Load (0.7ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (10.3ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.3ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.6ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "content_rendered", "content", "tags", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered -------------------------------------------------- [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (26.5ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Page Load (0.3ms)[0m 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"} [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.5ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::PageBlock Load (0.6ms)[0m 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]] [1m[36mPagesCms::Jumbotron Load (0.4ms)[0m [1mSELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::TextBox Load (0.4ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.4ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.6ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.7ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (244.4ms) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered -------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-15 22:30:44.874156"], ["updated_at", "2015-06-15 22:30:44.874156"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (32.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (3.3ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (22.8ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (1.4ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (10.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_thumbnails" [1m[36mFixture Insert (1.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36m (1.6ms)[0m [1mCOMMIT[0m [1m[35m (2.4ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML [1m[35mPagesCms::Image Load (0.9ms)[0m 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) [1m[36mPagesCms::Page Load (1.1ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered -------------------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Page Load (0.3ms)[0m 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"} [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.8ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::PageBlock Load (0.6ms)[0m 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]] [1m[36mPagesCms::Jumbotron Load (0.7ms)[0m [1mSELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::TextBox Load (0.6ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.5ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (1.1ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (260.9ms) [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.4ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Page Load (1.0ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (0.7ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-15 22:45:38.100669"], ["updated_at", "2015-06-15 22:45:38.100669"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[36mPagesCms::Image Load (0.7ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Article Load (0.8ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.3ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Image Load (3.1ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (2.0ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.4ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.6ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered -------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "content_rendered", "content", "tags", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (4.9ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (3.1ms)[0m 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 [1m[36m (0.4ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.7ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (17.9ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.8ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.6ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_thumbnails" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.2ms)[0m [1mCOMMIT[0m [1m[35m (2.1ms)[0m 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 [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home -------------------------------------------------------- [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (4.3ms)[0m 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 [1m[36m (0.4ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (18.3ms)[0m 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) [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_thumbnails" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.8ms)[0m [1mCOMMIT[0m [1m[35m (2.5ms)[0m 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 [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home -------------------------------------------------------- Processing by PagesCms::ArticlesController#index as HTML [1m[35mPagesCms::Article Load (0.7ms)[0m 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) [1m[36mPagesCms::Page Load (1.0ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.9ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (25.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (1.0ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (19.5ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_thumbnails" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.2ms)[0m [1mCOMMIT[0m [1m[35m (2.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (2.7ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (1.0ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_thumbnails" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (0.9ms)[0m [1mCOMMIT[0m [1m[35m (2.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- [1m[35mPagesCms::Page Load (0.7ms)[0m 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"} [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1[0m [["slug", "string"]] [1m[35mPagesCms::Sidebar Load (0.9ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::Thumbnail Load (0.4ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Jumbotron Load (0.5ms)[0m [1mSELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::TextBox Load (0.6ms)[0m 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) [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."sidebar_show" = 't'[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (56.4ms) [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (3.2ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.3ms)[0m DELETE FROM "pages_cms_thumbnails" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.7ms)[0m 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) [1m[36m (1.8ms)[0m [1mCOMMIT[0m [1m[35m (2.0ms)[0m 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 [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.6ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.9ms)[0m 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) [1m[36mPagesCms::Page Load (0.8ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (9.8ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------- PagesCms::JumbotronTest: test_markdown_is_rendered -------------------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "content_rendered", "content", "tags", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (1.1ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::TextBoxTest: test_markdown_is_rendered ------------------------------------------------ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.5ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::Jumbotron Load (0.5ms)[0m SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::TextBox Load (0.4ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.5ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.8ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::SidebarTest: test_markdown_is_rendered ------------------------------------------------ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------- PagesCms::ThumbnailTest: test_markdown_is_rendered -------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home -------------------------------------------------------- Processing by PagesCms::ArticlesController#index as HTML [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/index.html.erb within layouts/pages_cms/application (23.8ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.5ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m 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"} [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1[0m [["slug", "string"]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::Thumbnail Load (0.4ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Jumbotron Load (0.3ms)[0m [1mSELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::TextBox Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."sidebar_show" = 't'[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (26.9ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (318.4ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1412.1ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (67.6ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (70.5ms)[0m 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) [1m[36m (2.2ms)[0m [1mCREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")[0m [1m[35m (6.5ms)[0m 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) [1m[36m (6.5ms)[0m [1mCREATE 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) [0m [1m[35m (2.5ms)[0m CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id") [1m[36m (6.7ms)[0m [1mCREATE 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) [0m [1m[35m (2.8ms)[0m CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id") [1m[36m (7.6ms)[0m [1mCREATE 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) [0m [1m[35m (2.1ms)[0m CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id") [1m[36m (24.4ms)[0m [1mCREATE 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) [0m [1m[35m (2.5ms)[0m CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id") [1m[36m (12.3ms)[0m [1mCREATE 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) [0m [1m[35m (2.4ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id") [1m[36m (6.8ms)[0m [1mCREATE 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) [0m [1m[35m (2.2ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id") [1m[36m (2.2ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")[0m [1m[35m (25.8ms)[0m ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (5.4ms)[0m [1mALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (3.7ms)[0m ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (3.0ms)[0m [1mALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (2.6ms)[0m ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (2.6ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.5ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (5.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m [1m[35m (2.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.5ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (2.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150616171349') [1m[35mActiveRecord::SchemaMigration Load (0.6ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36mActiveRecord::SchemaMigration Load (1.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (367.9ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1323.2ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36m (982.9ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1424.3ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (63.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (12.8ms)[0m 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) [1m[36m (2.2ms)[0m [1mCREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")[0m [1m[35m (6.7ms)[0m 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) [1m[36m (6.5ms)[0m [1mCREATE 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) [0m [1m[35m (4.0ms)[0m CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id") [1m[36m (6.5ms)[0m [1mCREATE 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) [0m [1m[35m (2.5ms)[0m CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id") [1m[36m (7.1ms)[0m [1mCREATE 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) [0m [1m[35m (2.3ms)[0m CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id") [1m[36m (6.3ms)[0m [1mCREATE 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) [0m [1m[35m (2.2ms)[0m CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id") [1m[36m (6.5ms)[0m [1mCREATE 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) [0m [1m[35m (2.3ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id") [1m[36m (8.7ms)[0m [1mCREATE 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) [0m [1m[35m (2.4ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id") [1m[36m (2.2ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")[0m [1m[35m (3.7ms)[0m ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (10.8ms)[0m [1mALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (4.9ms)[0m ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (4.1ms)[0m [1mALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (3.5ms)[0m ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (3.2ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.5ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (3.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m [1m[35m (2.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.5ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150617002507') [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (1.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (225.4ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (2723.7ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (14.4ms)[0m 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) [1m[36m (2.4ms)[0m [1mCREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")[0m [1m[35m (7.5ms)[0m 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) [1m[36m (6.9ms)[0m [1mCREATE 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) [0m [1m[35m (2.4ms)[0m CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id") [1m[36m (6.7ms)[0m [1mCREATE 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) [0m [1m[35m (2.4ms)[0m CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id") [1m[36m (6.5ms)[0m [1mCREATE 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) [0m [1m[35m (2.3ms)[0m CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id") [1m[36m (6.3ms)[0m [1mCREATE 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) [0m [1m[35m (2.4ms)[0m CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id") [1m[36m (6.5ms)[0m [1mCREATE 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) [0m [1m[35m (2.4ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id") [1m[36m (7.7ms)[0m [1mCREATE 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) [0m [1m[35m (2.4ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id") [1m[36m (2.5ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")[0m [1m[35m (5.1ms)[0m ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (3.0ms)[0m [1mALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (3.2ms)[0m ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (2.6ms)[0m [1mALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (4.0ms)[0m ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (2.8ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.5ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (3.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m [1m[35m (2.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.5ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150617002507') [1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (206.0ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1981.3ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (13.8ms)[0m 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) [1m[36m (4.5ms)[0m [1mCREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")[0m [1m[35m (7.7ms)[0m 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) [1m[36m (6.6ms)[0m [1mCREATE 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) [0m [1m[35m (2.5ms)[0m CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id") [1m[36m (6.2ms)[0m [1mCREATE 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) [0m [1m[35m (2.6ms)[0m CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id") [1m[36m (7.8ms)[0m [1mCREATE 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) [0m [1m[35m (2.1ms)[0m CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id") [1m[36m (6.8ms)[0m [1mCREATE 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) [0m [1m[35m (2.6ms)[0m CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id") [1m[36m (7.0ms)[0m [1mCREATE 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) [0m [1m[35m (2.4ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id") [1m[36m (14.1ms)[0m [1mCREATE 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) [0m [1m[35m (3.1ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id") [1m[36m (2.7ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")[0m [1m[35m (3.5ms)[0m ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (3.3ms)[0m [1mALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (2.9ms)[0m ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (2.9ms)[0m [1mALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (2.7ms)[0m ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (2.8ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.9ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (5.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m [1m[35m (2.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.5ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (20.1ms)[0m 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 [1m[36m (0.4ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (17.3ms)[0m 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) [1m[36m (0.6ms)[0m [1mROLLBACK[0m [1m[35m (4.4ms)[0m 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 [1m[36m (2.8ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_articles"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_jumbotrons" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.5ms)[0m ROLLBACK [1m[36m (2.3ms)[0m [1mALTER 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[0m [1m[35m (2.4ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (2.1ms)[0m 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 [1m[36m (2.3ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_articles"[0m [1m[35mFixture Insert (0.5ms)[0m 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') [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_jumbotrons" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.3ms)[0m [1mALTER 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[0m [1m[35m (3.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (4.7ms)[0m 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 [1m[36m (2.4ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_articles"[0m [1m[35mFixture Insert (0.5ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_jumbotrons" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.6ms)[0m [1mALTER 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[0m [1m[35m (4.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (2.1ms)[0m 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 [1m[36m (2.4ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_articles"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_jumbotrons" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (18.5ms)[0m [1mALTER 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[0m [1m[35m (2.3ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (1.9ms)[0m 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 [1m[36m (2.1ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_articles"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_jumbotrons" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.1ms)[0m [1mALTER 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[0m [1m[35m (2.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (2.2ms)[0m 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 [1m[36m (2.1ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_articles"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_jumbotrons" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.2ms)[0m [1mALTER 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[0m [1m[35m (2.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (2.7ms)[0m 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 [1m[36m (2.1ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_articles"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_jumbotrons" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.0ms)[0m [1mALTER 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[0m [1m[35m (2.4ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (2.0ms)[0m 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 [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (3.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.6ms)[0m [1mALTER 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[0m [1m[35m (2.3ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.2ms)[0m [1mALTER 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[0m [1m[35m (2.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.1ms)[0m [1mALTER 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[0m [1m[35m (2.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.2ms)[0m [1mALTER 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[0m [1m[35m (2.4ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.6ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.1ms)[0m [1mALTER 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[0m [1m[35m (3.2ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.1ms)[0m [1mALTER 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[0m [1m[35m (2.4ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.0ms)[0m [1mALTER 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[0m [1m[35m (2.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (1.8ms)[0m [1mALTER 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[0m [1m[35m (2.4ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (1.9ms)[0m [1mALTER 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[0m [1m[35m (2.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (2.1ms)[0m [1mALTER 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[0m [1m[35m (2.4ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (1.9ms)[0m [1mALTER 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[0m [1m[35m (3.4ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.1ms)[0m [1mALTER 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[0m [1m[35m (2.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (1.9ms)[0m [1mALTER 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[0m [1m[35m (2.2ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (1.9ms)[0m [1mALTER 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[0m [1m[35m (3.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.1ms)[0m [1mALTER 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[0m [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (3.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.7ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_thumbnails" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (1.2ms)[0m [1mCOMMIT[0m [1m[35m (3.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Page Load (0.5ms)[0m 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"} [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::PageBlock Load (0.6ms)[0m 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]] [1m[36mPagesCms::Jumbotron Load (0.4ms)[0m [1mSELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::TextBox Load (0.4ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.4ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.7ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (443.4ms) [1m[35mPagesCms::Page Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_jumbotron_fields.html.haml (8.5ms) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.8ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.7ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (787.8ms) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.4ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (17.3ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (8.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m 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"} [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1[0m [["slug", "string"]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::PageBlock Load (0.6ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::Thumbnail Load (0.4ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Jumbotron Load (0.3ms)[0m [1mSELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::TextBox Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."sidebar_show" = 't'[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (12.7ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home -------------------------------------------------------- Processing by PagesCms::ArticlesController#index as HTML [1m[36mPagesCms::Article Load (0.6ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/index.html.erb within layouts/pages_cms/application (24.8ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Article Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Article Load (3.6ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.5ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (2.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_thumbnails" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.3ms)[0m [1mCOMMIT[0m [1m[35m (2.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m 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"} [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1[0m [["slug", "string"]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::Thumbnail Load (0.3ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Jumbotron Load (0.5ms)[0m [1mSELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::TextBox Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."sidebar_show" = 't'[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (34.5ms) [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.5ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML [1m[35mPagesCms::Image Load (0.7ms)[0m 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) [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.5ms)[0m 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"} [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (9.9ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Image Load (0.7ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.4ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::Jumbotron Load (0.4ms)[0m SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::TextBox Load (0.3ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.4ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_jumbotron_fields.html.haml (17.5ms) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (12.0ms) [1m[35mPagesCms::Page Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.6ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.7ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[36mPagesCms::Page Load (0.8ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.3ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (1.9ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home -------------------------------------------------------- Processing by PagesCms::ArticlesController#index as HTML [1m[35mPagesCms::Article Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36m (165.7ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1090.4ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (10.3ms)[0m 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) [1m[36m (2.3ms)[0m [1mCREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")[0m [1m[35m (6.5ms)[0m 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) [1m[36m (6.7ms)[0m [1mCREATE 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) [0m [1m[35m (2.6ms)[0m CREATE INDEX "index_pages_cms_jumbotrons_on_page_block_id" ON "pages_cms_jumbotrons" USING btree ("page_block_id") [1m[36m (6.5ms)[0m [1mCREATE 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) [0m [1m[35m (3.0ms)[0m CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id") [1m[36m (10.3ms)[0m [1mCREATE 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) [0m [1m[35m (2.7ms)[0m CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id") [1m[36m (6.2ms)[0m [1mCREATE 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) [0m [1m[35m (2.4ms)[0m CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id") [1m[36m (9.0ms)[0m [1mCREATE 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) [0m [1m[35m (4.4ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id") [1m[36m (6.0ms)[0m [1mCREATE 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) [0m [1m[35m (3.4ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id") [1m[36m (2.6ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")[0m [1m[35m (3.6ms)[0m ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (3.0ms)[0m [1mALTER TABLE "pages_cms_jumbotrons" ADD CONSTRAINT "fk_rails_756ebfb247" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (2.9ms)[0m ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (3.0ms)[0m [1mALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (2.6ms)[0m ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (2.7ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.6ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (5.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m [1m[35m (2.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.6ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (3.4ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_jumbotrons"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_thumbnails" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (1.0ms)[0m [1mCOMMIT[0m [1m[35m (6.1ms)[0m 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 [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (1.7ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-17 01:50:00.635836"], ["updated_at", "2015-06-17 01:50:00.635836"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] [1m[36mPagesCms::Sidebar Load (0.4ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::PageBlock Load (0.4ms)[0m 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]] [1m[36mPagesCms::Thumbnail Load (0.4ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Jumbotron Load (0.3ms)[0m SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::TextBox Load (0.3ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (28.2ms) [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.3ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::Jumbotron Load (0.4ms)[0m SELECT "pages_cms_jumbotrons".* FROM "pages_cms_jumbotrons" WHERE "pages_cms_jumbotrons"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::TextBox Load (0.2ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.3ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.6ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_jumbotron_fields.html.haml (78.9ms) [1m[35mPagesCms::Page Load (0.8ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.9ms) [1m[35mPagesCms::Page Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.7ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (8.1ms) [1m[35mPagesCms::Page Load (1.0ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.3ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home -------------------------------------------------------- Processing by PagesCms::ArticlesController#index as HTML [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.8ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.7ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36m (178.6ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1101.9ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (55.8ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (10.1ms)[0m 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) [1m[36m (2.4ms)[0m [1mCREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")[0m [1m[35m (5.5ms)[0m 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) [1m[36m (2.1ms)[0m [1mCREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id")[0m [1m[35m (6.7ms)[0m 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) [1m[36m (2.4ms)[0m [1mCREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id")[0m [1m[35m (2.7ms)[0m CREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id") [1m[36m (6.3ms)[0m [1mCREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m [1m[35m (6.7ms)[0m 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) [1m[36m (2.1ms)[0m [1mCREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")[0m [1m[35m (9.4ms)[0m 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) [1m[36m (2.5ms)[0m [1mCREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")[0m [1m[35m (7.3ms)[0m 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) [1m[36m (2.4ms)[0m [1mCREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")[0m [1m[35m (6.6ms)[0m 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) [1m[36m (2.5ms)[0m [1mCREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id")[0m [1m[35m (2.4ms)[0m CREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id") [1m[36m (9.8ms)[0m [1mCREATE 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) [0m [1m[35m (3.0ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id") [1m[36m (6.5ms)[0m [1mCREATE 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) [0m [1m[35m (2.4ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id") [1m[36m (2.0ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")[0m [1m[35m (6.0ms)[0m ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (3.7ms)[0m [1mALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (2.8ms)[0m ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (2.5ms)[0m [1mALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (2.6ms)[0m ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (2.8ms)[0m [1mALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (2.7ms)[0m ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (2.4ms)[0m [1mALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (2.5ms)[0m ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (2.8ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.7ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (5.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m [1m[35m (2.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.7ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (30.6ms)[0m 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 [1m[36m (0.5ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (1.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (1.0ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.6ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.6ms)[0m ROLLBACK [1m[36m (7.3ms)[0m [1mALTER 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[0m [1m[35m (7.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.7ms)[0m [1mALTER 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[0m [1m[35m (4.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.7ms)[0m [1mALTER 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[0m [1m[35m (2.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.6ms)[0m [1mALTER 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[0m [1m[35m (2.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.5ms)[0m [1mALTER 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[0m [1m[35m (3.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.3ms)[0m [1mALTER 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[0m [1m[35m (2.7ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.7ms)[0m [1mALTER 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[0m [1m[35m (3.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.3ms)[0m [1mALTER 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[0m [1m[35m (3.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.6ms)[0m [1mALTER 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[0m [1m[35m (2.7ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.5ms)[0m [1mALTER 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[0m [1m[35m (4.3ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.5ms)[0m [1mALTER 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[0m [1m[35m (2.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (2.6ms)[0m [1mALTER 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[0m [1m[35m (3.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (4.5ms)[0m [1mALTER 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[0m [1m[35m (3.4ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.6ms)[0m [1mALTER 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[0m [1m[35m (2.7ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.5ms)[0m [1mALTER 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[0m [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (3.7ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.2ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35m (0.8ms)[0m COMMIT [1m[36m (3.0ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (17.6ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (1.0ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-17 14:27:53.930688"], ["updated_at", "2015-06-17 14:27:53.930688"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML [1m[36mPagesCms::Image Load (0.9ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (223.7ms) [1m[35mPagesCms::Page Load (0.9ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.3ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.5ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.3ms) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home -------------------------------------------------------- Processing by PagesCms::ArticlesController#index as HTML [1m[35mPagesCms::Article Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] [1m[36mPagesCms::Sidebar Load (0.5ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Slider Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::Thumbnail Load (0.9ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::TextBox Load (0.6ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.6ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.4ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (37.8ms) [1m[35mPagesCms::Page Load (0.6ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.3ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.5ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.4ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.4ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.7ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (1.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Slider Load (0.5ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (1.6ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.6ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.8ms)[0m 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) [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.7ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.3ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (14.1ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (3.8ms)[0m 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 [1m[36m (0.4ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (19.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (1.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.3ms)[0m COMMIT [1m[36m (2.5ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (237.0ms) [1m[35mPagesCms::Page Load (0.8ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#hello
', '2015-06-17 14:41:42', '2015-06-17 14:41:42', 980190962) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35m (1.2ms)[0m COMMIT [1m[36m (3.1ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m 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
"}}}}}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (1.7ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1[0m [1m[35mSQL (5.8ms)[0m 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"]] [1m[36mSQL (2.1ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:41:42.715085"], ["updated_at", "2015-06-17 14:41:42.715085"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-17 14:41:42.719655"], ["updated_at", "2015-06-17 14:41:42.719655"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 427ms (ActiveRecord: 12.6ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.3ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m 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"} [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.3ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::PageBlock Load (0.4ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.3ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.3ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.3ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (1.0ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.7ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Slider Load (0.5ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (7.0ms) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (1.0ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (13.3ms) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (1.2ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (645.2ms) [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (1.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.4ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (50.3ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (20.8ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (1.1ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.2ms)[0m COMMIT [1m[36m (2.6ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m 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
"}}}}}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (1.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:42:51.882732"], ["updated_at", "2015-06-17 14:42:51.882732"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-17 14:42:51.887232"], ["updated_at", "2015-06-17 14:42:51.887232"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 395ms (ActiveRecord: 5.5ms) [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Page Load (1.0ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Page Load (0.5ms)[0m 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"} [1m[36mPagesCms::Page Load (3.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (1.2ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::PageBlock Load (0.6ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.3ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.3ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.3ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.6ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Slider Load (0.4ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (9.9ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (8.9ms) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.6ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (468.3ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.4ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (46.5ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (30.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.7ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (1.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.2ms)[0m COMMIT [1m[36m (2.4ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.4ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.4ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.4ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.4ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.8ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.6ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Slider Load (0.4ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.6ms)[0m 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) [1m[36mPagesCms::Page Load (0.8ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.4ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m 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
"}}}}}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (1.1ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:44:35.410198"], ["updated_at", "2015-06-17 14:44:35.410198"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-17 14:44:35.416961"], ["updated_at", "2015-06-17 14:44:35.416961"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 195ms (ActiveRecord: 5.7ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (192.9ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (33.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.6ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (1.2ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.0ms)[0m COMMIT [1m[36m (3.6ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m 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
"}}}}}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (1.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (23.7ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.9ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 551ms (ActiveRecord: 31.5ms) [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.4ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.4ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.3ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.3ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.4ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.4ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.8ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Slider Load (0.4ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.6ms)[0m 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) [1m[36mPagesCms::Page Load (0.8ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (3.6ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.7ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.6ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35m (1.6ms)[0m COMMIT [1m[36m (2.8ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (1.1ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.9ms)[0m 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
"}}}}}} [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (1.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:46:11.656348"], ["updated_at", "2015-06-17 14:46:11.656348"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-17 14:46:11.662336"], ["updated_at", "2015-06-17 14:46:11.662336"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 393ms (ActiveRecord: 7.4ms) [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[36mPagesCms::Page Load (0.9ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::Page Load (0.9ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.3ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.5ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.5ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.3ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.3ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.3ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Slider Load (0.4ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.8ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.6ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (4.1ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35m (9.3ms)[0m COMMIT [1m[36m (3.5ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[36mPagesCms::Image Load (0.9ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Article Load (0.8ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.7ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (9.5ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.6ms)[0m 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"} [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (2.0ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Article Load (0.7ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"content"=>"a paragraph
"}}}}}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (0.9ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.2ms)[0m 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"]] [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.5ms)[0m 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"]] [1m[36mSQL (1.7ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.2ms)[0m 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"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 387ms (ActiveRecord: 10.2ms) [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.7ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.5ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (1.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (1.1ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.5ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home -------------------------------------------------------- Processing by PagesCms::ArticlesController#index as HTML [1m[35mPagesCms::Article Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.6ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.6ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (3.4ms)[0m 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 [1m[36m (0.4ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.7ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (15.9ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.1ms)[0m COMMIT [1m[36m (2.5ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 35ms (ActiveRecord: 2.2ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.5ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.7ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Article Load (0.8ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (80.6ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.5ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (29.7ms)[0m COMMIT [1m[36m (75.6ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[36mPagesCms::Page Load (1.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.5ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.3ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.4ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.9ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.9ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.6ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Slider Load (0.5ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.7ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.4ms)[0m 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
"}}}}}} [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (1.1ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.8ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-17 14:49:37.542421"], ["updated_at", "2015-06-17 14:49:37.542421"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-17 14:49:37.547381"], ["updated_at", "2015-06-17 14:49:37.547381"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 321ms (ActiveRecord: 5.9ms) [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.9ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.9ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#hello
', '2015-06-17 14:50:03', '2015-06-17 14:50:03', 980190962) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.0ms)[0m COMMIT [1m[36m (2.4ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"content"=>"a paragraph
"}}}}}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (1.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.8ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.9ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 277ms (ActiveRecord: 8.3ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.7ms)[0m ROLLBACK [1m[36m (1.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Page Load (0.5ms)[0m 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"} [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.5ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::PageBlock Load (0.6ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.4ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.5ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.5ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.5ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.6ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.8ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Slider Load (0.5ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (12.6ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.3ms) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.6ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (395.6ms) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (2.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Page Load (0.8ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-17 14:50:05.472764"], ["updated_at", "2015-06-17 14:50:05.472764"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.9ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.7ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1 [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (3.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (1.0ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35m (0.9ms)[0m COMMIT [1m[36m (3.2ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"content"=>"a paragraph
"}}}}}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 56ms (ActiveRecord: 6.0ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Page Load (0.5ms)[0m 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"} [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.5ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.9ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::PageBlock Load (0.5ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.4ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.3ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.3ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.4ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Slider Load (0.3ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (5.5ms) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.5ms) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.8ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (315.7ms) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (55.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (15.2ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.5ms)[0m COMMIT [1m[36m (3.6ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"content"=>"a paragraph
"}}}}}} Unpermitted parameter: 0 [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 4], ["created_at", "2015-06-17 14:58:42.897786"], ["updated_at", "2015-06-17 14:58:42.897786"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 19ms (ActiveRecord: 2.6ms) [1m[36m (0.9ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Page Load (0.5ms)[0m 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"} [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.5ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::PageBlock Load (0.5ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.4ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.3ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.3ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.3ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Slider Load (0.3ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_slider_fields.html.haml (7.4ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (18.4ms) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.6ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/edit.html.haml within layouts/pages_cms/application (467.0ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.8ms)[0m 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"} [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.7ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Article Load (0.6ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/articles Completed 302 Found in 6ms (ActiveRecord: 0.9ms) [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" [1m[36m (0.6ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[36mPagesCms::Article Load (0.8ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (28.3ms) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (1.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (58.5ms)[0m 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 [1m[36m (0.4ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.7ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (33.1ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (1.7ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35m (1.0ms)[0m COMMIT [1m[36m (2.7ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (1.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.8ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 349ms (ActiveRecord: 2.8ms) [1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.5ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.3ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.4ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.3ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.3ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.7ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.6ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Slider Load (0.4ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35m (1.7ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#hello
', '2015-06-17 15:03:19', '2015-06-17 15:03:19', 980190962) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35m (1.2ms)[0m COMMIT [1m[36m (2.5ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[36mPagesCms::Page Load (1.1ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (1.1ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::PageBlock Load (0.7ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.5ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.4ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.5ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.8ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.8ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Slider Load (0.5ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m 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 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (1.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (1.2ms)[0m 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"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 218ms (ActiveRecord: 3.5ms) [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (17.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.8ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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)[0m [1m[35m (1.3ms)[0m COMMIT [1m[36m (3.0ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[36mPagesCms::Page Load (1.1ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::Page Load (1.0ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.6ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.4ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.4ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.5ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.7ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Slider Load (0.4ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.6ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (1.8ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (2.3ms)[0m 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"]] [1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 234ms (ActiveRecord: 5.4ms) [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (42.4ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (31.5ms)[0m 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') [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.2ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (1.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35m (1.4ms)[0m COMMIT [1m[36m (4.2ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (1.0ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.0ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-17 15:14:24.337420"], ["updated_at", "2015-06-17 15:14:24.337420"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 4], ["created_at", "2015-06-17 15:14:24.344509"], ["updated_at", "2015-06-17 15:14:24.344509"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 34ms (ActiveRecord: 6.0ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.4ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.3ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.7ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home -------------------------------------------------------- Processing by PagesCms::ArticlesController#index as HTML [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/index.html.erb within layouts/pages_cms/application (15.4ms) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/articles Completed 302 Found in 4ms (ActiveRecord: 0.8ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Article Load (0.3ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (10.2ms) [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Article Load (0.6ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (2.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (48.9ms)[0m 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 [1m[36m (0.4ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (21.4ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (1.0ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (16.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.6ms)[0m 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') [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (2.0ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.4ms)[0m COMMIT [1m[36m (2.5ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[36mPagesCms::Article Load (0.6ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (17.0ms) [1m[35mPagesCms::Page Load (1.1ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.4ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.3ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.8ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/articles Completed 302 Found in 6ms (ActiveRecord: 0.9ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (1.1ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.9ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-17 15:49:23.833233"], ["updated_at", "2015-06-17 15:49:23.833233"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-17 15:49:23.847252"], ["updated_at", "2015-06-17 15:49:23.847252"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 192ms (ActiveRecord: 5.8ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m 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"} [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1[0m [["slug", "string"]] [1m[35mPagesCms::Sidebar Load (0.3ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Slider Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::PageBlock Load (0.4ms)[0m 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]] [1m[36mPagesCms::Thumbnail Load (0.3ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::TextBox Load (0.3ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.3ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."sidebar_show" = 't'[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (19.5ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (7.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (130.6ms)[0m 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 [1m[36m (0.4ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (20.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.8ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (16.5ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (18.4ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.4ms)[0m COMMIT [1m[36m (2.5ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (11.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (1.1ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-18 05:08:39.016103"], ["updated_at", "2015-06-18 05:08:39.016103"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home -------------------------------------------------------- Processing by PagesCms::ArticlesController#index as HTML [1m[36mPagesCms::Article Load (0.9ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE (archived != true AND draft != true)[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/index.html.erb within layouts/pages_cms/application (5.2ms) [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.5ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (3.4ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m 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"} [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1[0m [["slug", "string"]] [1m[35mPagesCms::Sidebar Load (0.5ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Slider Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::PageBlock Load (0.5ms)[0m 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]] [1m[36mPagesCms::Thumbnail Load (1.1ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::TextBox Load (0.5ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.4ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."sidebar_show" = 't'[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/show.html.haml within layouts/pages_cms/application (56.2ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Image Load (0.9ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Image Load (0.6ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Article Load (0.6ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 5ms (ActiveRecord: 0.9ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 31ms (ActiveRecord: 5.4ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (44.3ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.7ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (28.8ms)[0m 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') [1m[36mFixture Delete (1.2ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.8ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.2ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (1.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35m (1.9ms)[0m COMMIT [1m[36m (4.0ms)[0m [1mALTER 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[0m [1m[35m (0.3ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 234ms (ActiveRecord: 6.0ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Page Load (0.5ms)[0m 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"} [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::PageBlock Load (0.4ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.4ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.4ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.5ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.4ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.5ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) [1m[36mPagesCms::Slider Load (0.4ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (0.9ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-18 05:11:36.755976"], ["updated_at", "2015-06-18 05:11:36.755976"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (1.0ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.7ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.3ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (2.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (2.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (1.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (362.0ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (4119.1ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (59.7ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (137.5ms)[0m 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) [1m[36m (2.6ms)[0m [1mCREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")[0m [1m[35m (5.9ms)[0m 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) [1m[36m (2.5ms)[0m [1mCREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id")[0m [1m[35m (8.4ms)[0m 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) [1m[36m (2.4ms)[0m [1mCREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id")[0m [1m[35m (2.9ms)[0m CREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id") [1m[36m (14.8ms)[0m [1mCREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m [1m[35m (8.2ms)[0m 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) [1m[36m (2.7ms)[0m [1mCREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")[0m [1m[35m (11.3ms)[0m 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) [1m[36m (2.2ms)[0m [1mCREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")[0m [1m[35m (118.1ms)[0m 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) [1m[36m (2.2ms)[0m [1mCREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")[0m [1m[35m (6.5ms)[0m 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) [1m[36m (2.3ms)[0m [1mCREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id")[0m [1m[35m (2.6ms)[0m CREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id") [1m[36m (7.4ms)[0m [1mCREATE 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) [0m [1m[35m (3.8ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id") [1m[36m (10.1ms)[0m [1mCREATE 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) [0m [1m[35m (2.3ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id") [1m[36m (2.4ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")[0m [1m[35m (110.6ms)[0m ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (24.5ms)[0m [1mALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (3.3ms)[0m ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (2.6ms)[0m [1mALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (3.4ms)[0m ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (2.9ms)[0m [1mALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (2.7ms)[0m ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (2.7ms)[0m [1mALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (3.0ms)[0m ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (2.9ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.6ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (8.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m [1m[35m (2.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.7ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') [1m[35mActiveRecord::SchemaMigration Load (0.7ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (183.3ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1300.3ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (29.6ms)[0m 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) [1m[36m (2.4ms)[0m [1mCREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")[0m [1m[35m (4.9ms)[0m 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) [1m[36m (2.4ms)[0m [1mCREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id")[0m [1m[35m (6.6ms)[0m 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) [1m[36m (2.2ms)[0m [1mCREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id")[0m [1m[35m (2.0ms)[0m CREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id") [1m[36m (5.4ms)[0m [1mCREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m [1m[35m (13.7ms)[0m 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) [1m[36m (2.4ms)[0m [1mCREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")[0m [1m[35m (50.2ms)[0m 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) [1m[36m (2.4ms)[0m [1mCREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")[0m [1m[35m (29.3ms)[0m 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) [1m[36m (2.6ms)[0m [1mCREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")[0m [1m[35m (20.7ms)[0m 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) [1m[36m (2.7ms)[0m [1mCREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id")[0m [1m[35m (2.4ms)[0m CREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id") [1m[36m (6.2ms)[0m [1mCREATE 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) [0m [1m[35m (2.3ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id") [1m[36m (16.7ms)[0m [1mCREATE 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) [0m [1m[35m (22.6ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id") [1m[36m (2.7ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")[0m [1m[35m (4.5ms)[0m ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (2.8ms)[0m [1mALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (2.6ms)[0m ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (2.5ms)[0m [1mALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (2.9ms)[0m ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (2.7ms)[0m [1mALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (2.8ms)[0m ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (2.6ms)[0m [1mALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (27.9ms)[0m ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (3.9ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (3.4ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (3.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m [1m[35m (4.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.7ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') [1m[35mActiveRecord::SchemaMigration Load (0.7ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (208.9ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (2971.0ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (0.9ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (45.9ms)[0m 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) [1m[36m (13.8ms)[0m [1mCREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")[0m [1m[35m (5.3ms)[0m 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) [1m[36m (4.0ms)[0m [1mCREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id")[0m [1m[35m (8.1ms)[0m 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) [1m[36m (2.7ms)[0m [1mCREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id")[0m [1m[35m (4.0ms)[0m CREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id") [1m[36m (7.7ms)[0m [1mCREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m [1m[35m (6.4ms)[0m 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) [1m[36m (2.9ms)[0m [1mCREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")[0m [1m[35m (7.3ms)[0m 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) [1m[36m (2.5ms)[0m [1mCREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")[0m [1m[35m (7.4ms)[0m 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) [1m[36m (2.5ms)[0m [1mCREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")[0m [1m[35m (9.6ms)[0m 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) [1m[36m (3.4ms)[0m [1mCREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id")[0m [1m[35m (3.7ms)[0m CREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id") [1m[36m (16.6ms)[0m [1mCREATE 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) [0m [1m[35m (3.9ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id") [1m[36m (8.8ms)[0m [1mCREATE 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) [0m [1m[35m (29.5ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id") [1m[36m (2.3ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")[0m [1m[35m (4.1ms)[0m ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (3.0ms)[0m [1mALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (2.9ms)[0m ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (2.5ms)[0m [1mALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (2.8ms)[0m ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (2.9ms)[0m [1mALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (2.8ms)[0m ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (2.7ms)[0m [1mALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (2.6ms)[0m ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (2.8ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (6.7ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (5.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m [1m[35m (2.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.6ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') [1m[35mActiveRecord::SchemaMigration Load (0.9ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (122.3ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1497.8ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (14.7ms)[0m 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) [1m[36m (2.0ms)[0m [1mCREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")[0m [1m[35m (28.4ms)[0m 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) [1m[36m (4.6ms)[0m [1mCREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id")[0m [1m[35m (6.7ms)[0m 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) [1m[36m (2.3ms)[0m [1mCREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id")[0m [1m[35m (2.4ms)[0m CREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id") [1m[36m (6.2ms)[0m [1mCREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m [1m[35m (6.7ms)[0m 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) [1m[36m (2.1ms)[0m [1mCREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")[0m [1m[35m (7.4ms)[0m 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) [1m[36m (4.4ms)[0m [1mCREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")[0m [1m[35m (6.9ms)[0m 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) [1m[36m (2.3ms)[0m [1mCREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")[0m [1m[35m (6.5ms)[0m 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) [1m[36m (2.1ms)[0m [1mCREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id")[0m [1m[35m (2.5ms)[0m CREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id") [1m[36m (6.1ms)[0m [1mCREATE 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) [0m [1m[35m (2.3ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id") [1m[36m (6.9ms)[0m [1mCREATE 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) [0m [1m[35m (2.5ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id") [1m[36m (2.2ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")[0m [1m[35m (3.8ms)[0m ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (3.2ms)[0m [1mALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (3.5ms)[0m ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (2.5ms)[0m [1mALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (2.6ms)[0m ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (3.0ms)[0m [1mALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (2.8ms)[0m ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (2.7ms)[0m [1mALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (3.3ms)[0m ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (2.9ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.6ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (4.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m [1m[35m (2.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.6ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') [1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36mActiveRecord::SchemaMigration Load (1.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (107.3ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (1.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (13.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (14.1ms)[0m 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) [1m[36mFixture Insert (0.7ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (4.2ms)[0m [1mALTER 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[0m [1m[35m (2.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.9ms)[0m [1mALTER 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[0m [1m[35m (2.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.7ms)[0m [1mALTER 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[0m [1m[35m (2.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.5ms)[0m [1mALTER 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[0m [1m[35m (23.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.8ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.6ms)[0m [1mALTER 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[0m [1m[35m (4.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.6ms)[0m [1mALTER 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[0m [1m[35m (2.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.5ms)[0m [1mALTER 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[0m [1m[35m (2.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.6ms)[0m [1mALTER 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[0m [1m[35m (2.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.9ms)[0m [1mALTER 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[0m [1m[35m (3.3ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.6ms)[0m [1mALTER 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[0m [1m[35m (2.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.8ms)[0m [1mALTER 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[0m [1m[35m (2.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.8ms)[0m [1mALTER 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[0m [1m[35m (2.7ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (4.2ms)[0m [1mALTER 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[0m [1m[35m (2.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.9ms)[0m [1mALTER 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[0m [1m[35m (2.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (2.7ms)[0m [1mALTER 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[0m [1m[35m (2.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.7ms)[0m [1mALTER 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[0m [1m[35m (3.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (12.7ms)[0m [1mALTER 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[0m [1m[35m (3.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.6ms)[0m [1mALTER 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[0m [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (73.0ms)[0m 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 [1m[36m (0.5ms)[0m [1mBEGIN[0m 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 [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (4.0ms)[0m [1mALTER 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[0m [1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (3.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.9ms)[0m [1mALTER 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[0m [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (4.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (19.6ms)[0m [1mALTER 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[0m [1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (193.3ms)[0m 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 [1m[36m (0.4ms)[0m [1mBEGIN[0m 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 [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (20.3ms)[0m [1mALTER 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[0m [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (4.2ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.6ms)[0m [1mALTER 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[0m [1m[35m (4.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.8ms)[0m [1mALTER 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[0m [1m[35m (2.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.6ms)[0m [1mALTER 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[0m [1m[35m (3.3ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (7.2ms)[0m [1mALTER 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[0m [1m[35m (3.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.0ms)[0m [1mALTER 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[0m [1m[35m (2.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.3ms)[0m [1mALTER 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[0m [1m[35m (2.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.6ms)[0m [1mALTER 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[0m [1m[35m (2.7ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.6ms)[0m [1mALTER 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[0m [1m[35m (3.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (2.6ms)[0m [1mALTER 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[0m [1m[35m (2.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.2ms)[0m [1mALTER 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[0m [1m[35m (3.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.7ms)[0m [1mALTER 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[0m [1m[35m (3.3ms)[0m 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 [1m[36m (0.4ms)[0m [1mBEGIN[0m 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 [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (3.0ms)[0m [1mALTER 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[0m [1m[35m (3.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (3.4ms)[0m [1mALTER 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[0m [1m[35m (3.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.6ms)[0m [1mALTER 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[0m [1m[35m (2.7ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.4ms)[0m [1mALTER 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[0m [1m[35m (3.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.7ms)[0m [1mALTER 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[0m [1m[35m (3.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.4ms)[0m [1mALTER 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[0m [1m[35m (2.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.1ms)[0m [1mALTER 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[0m [1m[35m (3.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m 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 [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.6ms)[0m [1mALTER 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[0m [1m[36m (627.1ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (3819.1ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36m (449.8ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1319.6ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (11.8ms)[0m 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) [1m[36m (7.4ms)[0m [1mCREATE 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) [0m [1m[35m (2.5ms)[0m CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id") [1m[36m (4.5ms)[0m [1mCREATE 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) [0m [1m[35m (2.0ms)[0m CREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id") [1m[36m (6.3ms)[0m [1mCREATE 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) [0m [1m[35m (2.0ms)[0m CREATE INDEX "index_pages_cms_contacts_on_page_block_id" ON "pages_cms_contacts" USING btree ("page_block_id") [1m[36m (6.1ms)[0m [1mCREATE 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) [0m [1m[35m (2.3ms)[0m CREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id") [1m[36m (2.1ms)[0m [1mCREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id")[0m [1m[35m (7.3ms)[0m 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) [1m[36m (6.6ms)[0m [1mCREATE 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) [0m [1m[35m (1.8ms)[0m CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id") [1m[36m (8.6ms)[0m [1mCREATE 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) [0m [1m[35m (2.0ms)[0m CREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id") [1m[36m (7.9ms)[0m [1mCREATE 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) [0m [1m[35m (2.5ms)[0m CREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id") [1m[36m (6.8ms)[0m [1mCREATE 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) [0m [1m[35m (2.3ms)[0m CREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id") [1m[36m (2.4ms)[0m [1mCREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id")[0m [1m[35m (6.6ms)[0m 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) [1m[36m (2.6ms)[0m [1mCREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id")[0m [1m[35m (6.5ms)[0m 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) [1m[36m (2.0ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id")[0m [1m[35m (4.4ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id") [1m[36m (3.9ms)[0m [1mALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (3.8ms)[0m ALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (2.7ms)[0m [1mALTER TABLE "pages_cms_contacts" ADD CONSTRAINT "fk_rails_9c3f3a8371" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (2.7ms)[0m ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (2.6ms)[0m [1mALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (2.6ms)[0m ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (3.0ms)[0m [1mALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (2.9ms)[0m ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (2.7ms)[0m [1mALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (3.3ms)[0m ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (3.1ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.8ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (4.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m [1m[35m (3.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.5ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (24.3ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (1.1ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (4.0ms)[0m [1mALTER 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[0m [1m[35m (3.4ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.8ms)[0m [1mALTER 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[0m [1m[35m (3.1ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (4.1ms)[0m [1mALTER 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[0m [1m[35m (3.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.7ms)[0m [1mALTER 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[0m [1m[35m (3.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.9ms)[0m [1mALTER 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[0m [1m[35m (2.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.0ms)[0m [1mALTER 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[0m [1m[35m (3.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.8ms)[0m [1mALTER 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[0m [1m[35m (3.2ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.0ms)[0m [1mALTER 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[0m [1m[35m (2.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.2ms)[0m [1mALTER 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[0m [1m[35m (3.2ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.9ms)[0m [1mALTER 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[0m [1m[35m (3.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (4.3ms)[0m [1mALTER 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[0m [1m[35m (3.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.8ms)[0m [1mALTER 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[0m [1m[35m (3.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.3ms)[0m [1mALTER 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[0m [1m[35m (2.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.9ms)[0m [1mALTER 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[0m [1m[35m (3.2ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.2ms)[0m [1mALTER 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[0m [1m[35m (3.3ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.8ms)[0m [1mALTER 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[0m [1m[35m (3.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.8ms)[0m [1mALTER 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[0m [1m[35m (3.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.2ms)[0m [1mALTER 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[0m [1m[35m (3.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.1ms)[0m [1mALTER 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[0m [1m[35m (3.4ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (2.8ms)[0m [1mALTER 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[0m [1m[35m (3.3ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.2ms)[0m [1mALTER 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[0m [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (3.7ms)[0m 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 [1m[36m (0.4ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (18.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_contacts" [1m[36mFixture Insert (1.7ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.7ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (20.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (1.5ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.1ms)[0m COMMIT [1m[36m (6.8ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (8.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] [1m[36mPagesCms::Sidebar Load (0.4ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Slider Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::Thumbnail Load (0.6ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::TextBox Load (0.3ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.3ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.3ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/pages/_main.html.haml (32.9ms) [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Article Load (0.8ms)[0m 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home -------------------------------------------------------- [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (4.0ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.5ms)[0m 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) [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.4ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.4ms)[0m 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"}}}}}} [1m[36m (26.4ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (405.1ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.2ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:06:12.547084"], ["updated_at", "2015-06-18 15:06:12.547084"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-18 15:06:12.552021"], ["updated_at", "2015-06-18 15:06:12.552021"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 661ms (ActiveRecord: 437.4ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Page Load (0.5ms)[0m 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"} [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.5ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::PageBlock Load (0.6ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.4ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.3ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.3ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.3ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.6ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) [1m[36mPagesCms::Slider Load (0.3ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.6ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#hello
', '2015-06-18 15:08:14', '2015-06-18 15:08:14', 980190962) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (4.4ms)[0m COMMIT [1m[36m (6.0ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------------- PagesCms::ContactMailerTest: test_new_contact --------------------------------------------- [1m[36mPagesCms::Account Load (0.9ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m PagesCms::ContactMailer#new_contact: processed outbound mail in 1.3ms [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (14.2ms) [1m[35mPagesCms::Page Load (1.0ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home -------------------------------------------------------- [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m 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"}}}}}} [1m[35m (1.8ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (1.1ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 516ms (ActiveRecord: 18.5ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m 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"} [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.5ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::PageBlock Load (0.5ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.3ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.3ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.3ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.3ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.6ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) [1m[36mPagesCms::Slider Load (0.4ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.5ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#hello
', '2015-06-18 15:09:10', '2015-06-18 15:09:10', 980190962) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (0.9ms)[0m COMMIT [1m[36m (2.8ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_accounts" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (5.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (18.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contacts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (124.0ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (5.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35m (1.1ms)[0m COMMIT [1m[36m (2.7ms)[0m [1mALTER 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[0m [1m[35m (0.6ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (4.1ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (18.8ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contacts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (1.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (1.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.2ms)[0m COMMIT [1m[36m (2.7ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35mPagesCms::Article Load (0.6ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (40.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (29.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contacts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (1.8ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (6.2ms)[0m COMMIT [1m[36m (10.4ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (4.7ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.7ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contacts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.6ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.6ms)[0m COMMIT [1m[36m (5.5ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.5ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Image Load (0.9ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/articles Completed 302 Found in 5ms (ActiveRecord: 0.8ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (12.6ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35mPagesCms::Article Load (0.3ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_accounts" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.8ms)[0m 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"}}}}}} [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (1.6ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.8ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.0ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:11:40.590754"], ["updated_at", "2015-06-18 15:11:40.590754"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-18 15:11:40.595530"], ["updated_at", "2015-06-18 15:11:40.595530"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 405ms (ActiveRecord: 7.7ms) [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[36mPagesCms::Page Load (0.9ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.4ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.4ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.3ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.3ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.3ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.6ms) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.6ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m [1m[35mPagesCms::Slider Load (0.4ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.2ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_articles_home -------------------------------------------------------- [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-18 15:11:41.116891"], ["updated_at", "2015-06-18 15:11:41.116891"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#hello
', '2015-06-18 15:23:33', '2015-06-18 15:23:33', 980190962) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.1ms)[0m COMMIT [1m[36m (2.4ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (51.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (14.0ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_contacts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.6ms)[0m COMMIT [1m[36m (2.6ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::ArticlesControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (61.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (18.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_contacts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (1.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (1.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35m (1.2ms)[0m COMMIT [1m[36m (4.3ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[36m (1.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_contacts"[0m 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) [1m[35m (0.4ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (71.8ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (82.9ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contacts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (44.7ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (1.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35m (2.3ms)[0m COMMIT [1m[36m (3.9ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_contacts"[0m Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 24ms (ActiveRecord: 1.0ms) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 10ms (ActiveRecord: 0.9ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Article Load (0.8ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.6ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.7ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_accounts"[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.5ms)[0m 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"} [1m[36mPagesCms::Article Load (0.6ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.8ms) [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (1.1ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-18 15:30:03.632609"], ["updated_at", "2015-06-18 15:30:03.632609"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] [1m[36mPagesCms::Sidebar Load (0.4ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Slider Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::Thumbnail Load (0.8ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::TextBox Load (0.4ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.4ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.4ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["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) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------------- PagesCms::ContactMailerTest: test_new_contact --------------------------------------------- [1m[35mPagesCms::Account Load (0.5ms)[0m 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 [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.9ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.9ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:30:04.886893"], ["updated_at", "2015-06-18 15:30:04.886893"]] [1m[35mSQL (0.8ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 4], ["created_at", "2015-06-18 15:30:04.892216"], ["updated_at", "2015-06-18 15:30:04.892216"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 28ms (ActiveRecord: 5.8ms) [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.3ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (4.3ms)[0m 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 [1m[36m (0.4ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contacts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.2ms)[0m COMMIT [1m[36m (3.0ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_accounts" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] [1m[36mPagesCms::Sidebar Load (0.5ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Slider Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::Thumbnail Load (0.6ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::TextBox Load (0.3ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.3ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.3ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["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) [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.4ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m --------------------------------------------- PagesCms::ContactMailerTest: test_new_contact --------------------------------------------- [1m[35mPagesCms::Account Load (0.6ms)[0m 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 [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m 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"} [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.5ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::PageBlock Load (0.4ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.4ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.3ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.3ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.4ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.7ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) [1m[36mPagesCms::Slider Load (0.5ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.4ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m 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"}}}}}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.7ms)[0m 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"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 37ms (ActiveRecord: 7.2ms) [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.5ms)[0m 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"} [1m[36mPagesCms::Article Load (0.6ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (1.0ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.6ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Article Load (0.6ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 6ms (ActiveRecord: 0.8ms) [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Article Load (1.0ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (3.8ms) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.3ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[35mPagesCms::Article Load (0.5ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#hello
', '2015-06-18 15:31:08', '2015-06-18 15:31:08', 980190962) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.8ms)[0m COMMIT [1m[36m (2.7ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_contacts"[0m Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 23ms (ActiveRecord: 1.1ms) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (5.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (18.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contacts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (1.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (1.1ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.2ms)[0m COMMIT [1m[36m (2.5ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_contacts"[0m Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to where_i_came_from Completed 302 Found in 24ms (ActiveRecord: 1.2ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_contacts"[0m [1m[35m (0.3ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (4.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contacts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.2ms)[0m COMMIT [1m[36m (2.9ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_contacts"[0m Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to where_i_came_from Completed 302 Found in 57ms (ActiveRecord: 1.1ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_contacts"[0m [1m[35m (0.3ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (59.7ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (18.7ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.9ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (1.7ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_contacts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.8ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (9.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.8ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.6ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (1.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.8ms)[0m COMMIT [1m[36m (2.8ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (5.4ms)[0m 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 [1m[36m (0.4ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (18.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.6ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_contacts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (1.1ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (1.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (0.9ms)[0m COMMIT [1m[36m (4.3ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_contacts"[0m Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to where_i_came_from Completed 302 Found in 28ms (ActiveRecord: 1.4ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_contacts"[0m [1m[35m (0.4ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (54.2ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (18.7ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_contacts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (1.7ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (1.0ms)[0m 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) [1m[36mFixture Insert (1.0ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (2.9ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35m (1.3ms)[0m COMMIT [1m[36m (3.7ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_contacts"[0m Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to where_i_came_from Completed 302 Found in 190ms (ActiveRecord: 1.6ms) [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_contacts"[0m [1m[35m (0.3ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (48.4ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (29.7ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contacts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (1.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (1.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35m (1.0ms)[0m COMMIT [1m[36m (3.4ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_accounts" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[36m (0.9ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_contacts"[0m Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (1.0ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.8ms)[0m 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.8ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.8ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (1.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-18 15:37:29.746760"], ["updated_at", "2015-06-18 15:37:29.746760"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.7ms)[0m 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"}}}}}} [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.8ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (11.3ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:37:30.550855"], ["updated_at", "2015-06-18 15:37:30.550855"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 4], ["created_at", "2015-06-18 15:37:30.556291"], ["updated_at", "2015-06-18 15:37:30.556291"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 76ms (ActiveRecord: 16.8ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.5ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.4ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.3ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.3ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.3ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (1.1ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.7ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.6ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m [1m[35mPagesCms::Slider Load (0.4ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.7ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[36mPagesCms::Page Load (0.8ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (2.6ms)[0m 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) [1m[36mPagesCms::Page Load (1.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (1.6ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.8ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (7.8ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (3.3ms)[0m ROLLBACK [1m[36m (1.6ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (1.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.9ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#hello
', '2015-06-18 15:39:22', '2015-06-18 15:39:22', 980190962) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35m (1.2ms)[0m COMMIT [1m[36m (2.7ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML [1m[36mPagesCms::Image Load (0.6ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (253.8ms) [1m[35mPagesCms::Page Load (0.8ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.9ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 15:39:25.127644"], ["updated_at", "2015-06-18 15:39:25.127644"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 4], ["created_at", "2015-06-18 15:39:25.132503"], ["updated_at", "2015-06-18 15:39:25.132503"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 70ms (ActiveRecord: 6.3ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[36mPagesCms::Page Load (0.9ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.5ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.5ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.5ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.5ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.4ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.8ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.5ms) [1m[35mPagesCms::Page Load (3.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.6ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m [1m[35mPagesCms::Slider Load (0.5ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_contacts"[0m Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.5ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] [1m[36mPagesCms::Sidebar Load (0.7ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Slider Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::Thumbnail Load (0.4ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::TextBox Load (0.3ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.3ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.3ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (3.9ms)[0m 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 [1m[36m (0.6ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contacts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (20.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35m (2.1ms)[0m COMMIT [1m[36m (2.5ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] [1m[36mPagesCms::Sidebar Load (0.5ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Slider Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::Thumbnail Load (0.7ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::TextBox Load (0.6ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.4ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.3ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["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) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Article Load (0.6ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (3.6ms) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_accounts"[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-18 15:40:03.740246"], ["updated_at", "2015-06-18 15:40:03.740246"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.3ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[35mPagesCms::Article Load (0.3ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (11.0ms) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 15ms (ActiveRecord: 0.9ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (20.8ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.0ms)[0m 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"]] [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.8ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 82ms (ActiveRecord: 26.8ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m 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"} [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.5ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::PageBlock Load (0.8ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.4ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.3ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.4ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.3ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.9ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) [1m[36mPagesCms::Slider Load (0.4ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.4ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.9ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m 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) [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_contacts" [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (61.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (29.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_contacts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (1.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (2.0ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.6ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35m (1.5ms)[0m COMMIT [1m[36m (3.2ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (17.5ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 40ms (ActiveRecord: 21.8ms) [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_contacts" Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m 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) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_contacts" [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 5ms (ActiveRecord: 0.9ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.8ms)[0m 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"} [1m[36mPagesCms::Article Load (0.6ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.1ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::PagesController#show as HTML Parameters: {"slug"=>"string"} [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1 [["slug", "string"]] [1m[36mPagesCms::Sidebar Load (0.5ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Slider Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::Thumbnail Load (0.4ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::TextBox Load (0.3ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.3ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.3ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["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) [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (4.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contacts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (3.0ms)[0m COMMIT [1m[36m (2.7ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_contacts"[0m Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.8ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.8ms)[0m 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) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_contacts"[0m [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (1.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-18 15:45:44.999512"], ["updated_at", "2015-06-18 15:45:44.999512"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 23ms (ActiveRecord: 5.3ms) [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (7.4ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 3ms (ActiveRecord: 0.7ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (1.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (64.5ms)[0m 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 [1m[36m (0.4ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (13.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.8ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.7ms)[0m DELETE FROM "pages_cms_contacts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (18.6ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.7ms)[0m 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) [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (7.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (3.5ms)[0m COMMIT [1m[36m (3.0ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[36mPagesCms::Page Load (1.1ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.5ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Completed 500 Internal Server Error in 198ms (ActiveRecord: 3.4ms) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (1.1ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m 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"}}}}}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (1.1ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.5ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 280ms (ActiveRecord: 6.8ms) [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Page Load (0.3ms)[0m 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"} [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::PageBlock Load (0.4ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.4ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.3ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.3ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.3ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.6ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) [1m[36mPagesCms::Slider Load (0.4ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.6ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Completed 500 Internal Server Error in 22ms (ActiveRecord: 1.0ms) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Completed 500 Internal Server Error in 25ms (ActiveRecord: 1.8ms) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/articles Completed 302 Found in 4ms (ActiveRecord: 0.7ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.3ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/articles/index.html.haml within layouts/pages_cms/application (9.5ms) [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_accounts" [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (40.7ms) [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#hello
', '2015-06-18 16:51:39', '2015-06-18 16:51:39', 980190962) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.2ms)[0m COMMIT [1m[36m (2.8ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[35mPagesCms::Article Load (0.6ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[36mPagesCms::Page Load (1.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.6ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.5ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.4ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.4ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.5ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (1.4ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.2ms) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.5ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m [1m[35mPagesCms::Slider Load (0.4ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.5ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m 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"}}}}}} [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (1.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.9ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 16:51:40.982880"], ["updated_at", "2015-06-18 16:51:40.982880"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-18 16:51:40.987547"], ["updated_at", "2015-06-18 16:51:40.987547"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 163ms (ActiveRecord: 6.4ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#hello
', '2015-06-18 16:53:49', '2015-06-18 16:53:49', 980190962) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.1ms)[0m COMMIT [1m[36m (2.5ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35mPagesCms::Article Load (0.5ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (16.1ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 41ms (ActiveRecord: 20.4ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.4ms) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m Completed 200 OK in 29ms (Views: 23.8ms | ActiveRecord: 4.1ms) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.7ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 4ms (ActiveRecord: 0.8ms) [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_accounts"[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (1.8ms) [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.4ms) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m Completed 200 OK in 17ms (Views: 13.4ms | ActiveRecord: 3.1ms) [1m[35m (0.2ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (4.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (11.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_contacts" [1m[36mFixture Insert (8.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (1.3ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (2.0ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.0ms)[0m COMMIT [1m[36m (3.3ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_accounts" [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[36mPagesCms::Page Load (1.8ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.7ms)[0m 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) [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Page Load (0.9ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.5ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.4ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.3ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.4ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.6ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.7ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.0ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.6ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m [1m[35mPagesCms::Slider Load (0.4ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m 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"}}}}}} [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (1.1ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.8ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (29.8ms)[0m 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"]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 16:54:28.930840"], ["updated_at", "2015-06-18 16:54:28.930840"]] [1m[35mSQL (0.9ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-18 16:54:28.937887"], ["updated_at", "2015-06-18 16:54:28.937887"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 390ms (ActiveRecord: 35.6ms) [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.7ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (2.1ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36mPagesCms::Account Load (1.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.5ms)[0m 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) [1m[36m (1.7ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ContactsController#index as HTML [1m[36mPagesCms::Contact Load (0.8ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/contacts/index.html.haml within layouts/pages_cms/application (13.0ms) [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.7ms) [1m[35mPagesCms::Account Load (0.6ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m Completed 200 OK in 46ms (Views: 42.1ms | ActiveRecord: 3.9ms) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-18 16:54:29.226384"], ["updated_at", "2015-06-18 16:54:29.226384"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (1.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- [1m[35mPagesCms::Page Load (0.5ms)[0m 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"} [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1[0m [["slug", "string"]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Slider Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::PageBlock Load (0.4ms)[0m 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]] [1m[36mPagesCms::Thumbnail Load (0.4ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::TextBox Load (0.3ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.3ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.6ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_contacts"[0m Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.5ms)[0m 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) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_contacts"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#hello
', '2015-06-18 17:38:02', '2015-06-18 17:38:02', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.4ms)[0m [1mCOMMIT[0m [1m[35m (7.4ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (17.4ms) [1m[35mPagesCms::Account Load (1.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Page Load (1.1ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (119.3ms) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m Completed 200 OK in 2623ms (Views: 2610.9ms | ActiveRecord: 4.9ms) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m 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"} [1m[36mPagesCms::Page Load (12.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1[0m [["slug", "string"]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Slider Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::PageBlock Load (0.5ms)[0m 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]] [1m[36mPagesCms::Thumbnail Load (0.6ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::TextBox Load (0.3ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.3ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.3ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ContactField Load (0.3ms)[0m [1mSELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.4ms) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m Completed 200 OK in 146ms (Views: 85.7ms | ActiveRecord: 19.4ms) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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"} [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.4ms) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m Completed 200 OK in 91ms (Views: 87.0ms | ActiveRecord: 3.1ms) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.2ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 17:38:06.723430"], ["updated_at", "2015-06-18 17:38:06.723430"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 4], ["created_at", "2015-06-18 17:38:06.727792"], ["updated_at", "2015-06-18 17:38:06.727792"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 23ms (ActiveRecord: 5.4ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36m (534.9ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1199.7ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (0.5ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (11.0ms)[0m 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) [1m[36m (7.9ms)[0m [1mCREATE 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) [0m [1m[35m (2.5ms)[0m CREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id") [1m[36m (4.6ms)[0m [1mCREATE 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) [0m [1m[35m (2.0ms)[0m CREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id") [1m[36m (6.1ms)[0m [1mCREATE 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) [0m [1m[35m (2.2ms)[0m CREATE INDEX "index_pages_cms_contact_fields_on_page_block_id" ON "pages_cms_contact_fields" USING btree ("page_block_id") [1m[36m (6.4ms)[0m [1mCREATE 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) [0m [1m[35m (7.3ms)[0m 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) [1m[36m (2.1ms)[0m [1mCREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id")[0m [1m[35m (2.4ms)[0m CREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id") [1m[36m (7.4ms)[0m [1mCREATE TABLE "pages_cms_images" ("id" serial primary key, "name" character varying, "file" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m [1m[35m (6.1ms)[0m 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) [1m[36m (2.2ms)[0m [1mCREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id")[0m [1m[35m (6.7ms)[0m 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) [1m[36m (2.4ms)[0m [1mCREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")[0m [1m[35m (8.0ms)[0m 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) [1m[36m (2.5ms)[0m [1mCREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")[0m [1m[35m (7.9ms)[0m 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) [1m[36m (2.1ms)[0m [1mCREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id")[0m [1m[35m (2.3ms)[0m CREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id") [1m[36m (6.6ms)[0m [1mCREATE 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) [0m [1m[35m (25.0ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id") [1m[36m (9.4ms)[0m [1mCREATE 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) [0m [1m[35m (2.6ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id") [1m[36m (2.2ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")[0m [1m[35m (4.0ms)[0m ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (2.5ms)[0m [1mALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (2.8ms)[0m ALTER TABLE "pages_cms_contact_fields" ADD CONSTRAINT "fk_rails_04b58dd02a" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (2.8ms)[0m [1mALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.6ms)[0m ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (2.7ms)[0m [1mALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (2.7ms)[0m ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (2.9ms)[0m [1mALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.6ms)[0m ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (2.7ms)[0m [1mALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (3.2ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (2.5ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (75.1ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [1m[36m (3.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35m (0.7ms)[0m SELECT version FROM "schema_migrations" [1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150609171657')[0m [1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (5.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-18 17:48:21', '2015-06-18 17:48:21', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.6ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sliders"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_text_boxes" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (0.9ms)[0m [1mCOMMIT[0m [1m[35m (12.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m 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"} [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1[0m [["slug", "string"]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Slider Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::PageBlock Load (0.4ms)[0m 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]] [1m[36mPagesCms::Thumbnail Load (0.8ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::TextBox Load (0.4ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.4ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.3ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ContactField Load (0.4ms)[0m [1mSELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.9ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (14.5ms) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m Completed 200 OK in 833ms (Views: 714.1ms | ActiveRecord: 9.9ms) [1m[35m (0.4ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_accounts"[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.9ms) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m Completed 200 OK in 52ms (Views: 46.4ms | ActiveRecord: 4.7ms) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Page Load (0.6ms)[0m 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"} [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.5ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::PageBlock Load (0.5ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.5ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.3ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ContactField Load (0.3ms)[0m [1mSELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.3ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.3ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (5.4ms) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.8ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_image_box_fields.html.haml (2.8ms) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.0ms) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.6ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m [1m[35mPagesCms::Slider Load (0.3ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.5ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m 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"}}}}}} [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (2.0ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.2ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 17:48:24.031514"], ["updated_at", "2015-06-18 17:48:24.031514"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-18 17:48:24.035872"], ["updated_at", "2015-06-18 17:48:24.035872"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 167ms (ActiveRecord: 7.1ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'really-cool' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE ("pages_cms_pages"."slug" = 'mystring' AND "pages_cms_pages"."id" != 1) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/articles Completed 302 Found in 10ms (ActiveRecord: 0.8ms) [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.4ms) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m Completed 200 OK in 49ms (Views: 44.9ms | ActiveRecord: 3.7ms) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.3ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.8ms) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m Completed 200 OK in 25ms (Views: 20.2ms | ActiveRecord: 4.0ms) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.3ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.6ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.5ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_contacts"[0m Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "pages_cms_contacts" ("name", "email", "message", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m ApplicationMailer#account: processed outbound mail in 1.4ms [1m[35mPagesCms::Account Load (0.5ms)[0m 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) [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_contacts"[0m [1m[35m (0.4ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m 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"} [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.7ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.0ms) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m Completed 200 OK in 61ms (Views: 56.4ms | ActiveRecord: 3.5ms) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ContactsController#index as HTML [1m[35mPagesCms::Contact Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35mPagesCms::Article Load (0.3ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (19.3ms) [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (3.7ms) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m Completed 200 OK in 45ms (Views: 41.7ms | ActiveRecord: 2.8ms) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#hello
', '2015-06-18 18:22:21', '2015-06-18 18:22:21', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.3ms)[0m [1mCOMMIT[0m [1m[35m (3.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m 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"} [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = $1 LIMIT 1[0m [["slug", "string"]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Slider Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::PageBlock Load (0.5ms)[0m 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]] [1m[36mPagesCms::Thumbnail Load (0.9ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::TextBox Load (0.3ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.3ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.3ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ContactField Load (0.3ms)[0m [1mSELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (8.5ms) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m Completed 200 OK in 3040ms (Views: 2953.6ms | ActiveRecord: 8.2ms) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m 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"} [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL[0m [1m[35mPagesCms::PageBlock Load (0.4ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.4ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.2ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ContactField Load (0.3ms)[0m [1mSELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.2ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.3ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.6ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.5ms) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.6ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m [1m[35mPagesCms::Slider Load (0.4ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.6ms)[0m 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m 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"}}}}}} [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."slug" = 'test-page' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.9ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-18 18:22:25.902037"], ["updated_at", "2015-06-18 18:22:25.902037"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-18 18:22:25.906999"], ["updated_at", "2015-06-18 18:22:25.906999"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 181ms (ActiveRecord: 5.2ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- Processing by PagesCms::Admin::PagesController#index as HTML [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IS NULL [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_accounts" [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 5ms (ActiveRecord: 0.7ms) [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (4.5ms) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m Completed 200 OK in 33ms (Views: 27.3ms | ActiveRecord: 4.4ms) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't'[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.6ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ Processing by PagesCms::Admin::ImagesController#index as HTML [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/images/index.html.haml within layouts/pages_cms/application (21.9ms) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."navbar_show" = 't' [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/layouts/pages_cms/_header.html.erb (5.0ms) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m Completed 200 OK in 48ms (Views: 44.7ms | ActiveRecord: 3.2ms) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#hello
', '2015-06-20 23:21:52', '2015-06-20 23:21:52', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.1ms)[0m [1mCOMMIT[0m [1m[35m (8.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m 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) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (6.4ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#hello
', '2015-06-20 23:24:20', '2015-06-20 23:24:20', 980190962)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (387.6ms)[0m [1mCOMMIT[0m [1m[35m (30.2ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Contact Load (0.4ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.7ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't'[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (7.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-20 23:24:36', '2015-06-20 23:24:36', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_sliders"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_text_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.0ms)[0m [1mCOMMIT[0m [1m[35m (3.1ms)[0m 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 [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Contact Load (0.4ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.8ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't'[0m [["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) [1m[35m (0.4ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (4.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-20 23:25:00', '2015-06-20 23:25:00', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sliders"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_text_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.1ms)[0m [1mCOMMIT[0m [1m[35m (3.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m 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"} [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (1.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.6ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't'[0m [["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) [1m[35m (0.5ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.7ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (1.1ms)[0m 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"]] [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.7ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-20 23:25:01.772993"], ["updated_at", "2015-06-20 23:25:01.772993"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-20 23:25:01.778031"], ["updated_at", "2015-06-20 23:25:01.778031"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (1.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.5ms)[0m 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) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.5ms)[0m [1mROLLBACK[0m [1m[35m (0.3ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.4ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "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[0m [["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) [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't'[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't'[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 21ms (ActiveRecord: 1.7ms) [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.6ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Image Load (0.6ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (6.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (21.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (3.6ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-20 23:29:29', '2015-06-20 23:29:29', 980190962)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (1.0ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sliders"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_text_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (2.0ms)[0m [1mCOMMIT[0m [1m[35m (3.3ms)[0m 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 [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (1.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1[0m [1m[35m (0.4ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.5ms)[0m 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"} [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.9ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Exists (2.6ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.6ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't'[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.9ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-20 23:29:31.461694"], ["updated_at", "2015-06-20 23:29:31.461694"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 4], ["created_at", "2015-06-20 23:29:31.466536"], ["updated_at", "2015-06-20 23:29:31.466536"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.8ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/articles Completed 302 Found in 12ms (ActiveRecord: 1.5ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Article Load (0.3ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Image Load (0.8ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't'[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.8ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't'[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.9ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't'[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Contact Load (0.4ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't'[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (6.4ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-20 23:32:11', '2015-06-20 23:32:11', 980190962)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (1.0ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.6ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (1.0ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "pages_cms_sliders"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_text_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.3ms)[0m [1mCOMMIT[0m [1m[35m (13.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Contact Load (0.4ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.9ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't'[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.5ms)[0m 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 [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.6ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't'[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.7ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.6ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.3ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Article Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.4ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/articles Completed 302 Found in 11ms (ActiveRecord: 2.4ms) [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.3ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.7ms)[0m 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"}}}}}} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (1.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 316ms (ActiveRecord: 8.4ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "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[0m [["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) [1m[35mPagesCms::Account Load (0.6ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't'[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (10.7ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (5.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-20 23:32:13.839954"], ["updated_at", "2015-06-20 23:32:13.839954"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_contacts"[0m Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (1.2ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.5ms)[0m 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) [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#hello
', '2015-06-20 23:42:55', '2015-06-20 23:42:55', 980190962)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (1.7ms)[0m [1mCOMMIT[0m [1m[35m (3.2ms)[0m 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 [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m 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"} [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.4ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.8ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 333ms (ActiveRecord: 7.7ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m 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) [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Article Load (0.6ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (3.4ms) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Completed 500 Internal Server Error in 23ms (ActiveRecord: 1.1ms) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_contacts"[0m Processing by PagesCms::ContactsController#create as HTML Parameters: {"contact"=>{"name"=>"Jimmy", "email"=>"jimmy@test.com", "message"=>"hello there"}} [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (24.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (6.1ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (19.9ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-21 00:42:49', '2015-06-21 00:42:49', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (3.6ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.7ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (1.0ms)[0m [1mDELETE FROM "pages_cms_sliders"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_text_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (9.0ms)[0m [1mCOMMIT[0m [1m[35m (5.7ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.5ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[35m (0.6ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.9ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m 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"}}}}}} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.9ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-21 00:42:52.626982"], ["updated_at", "2015-06-21 00:42:52.626982"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-21 00:42:52.631816"], ["updated_at", "2015-06-21 00:42:52.631816"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (1.1ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.4ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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"} [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Contact Load (0.3ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.4ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.8ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::ImagesController#index as HTML [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#hello
', '2015-06-21 00:44:28', '2015-06-21 00:44:28', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.8ms)[0m [1mCOMMIT[0m [1m[35m (3.2ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.5ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} [1m[35mPagesCms::Account Load (0.5ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.8ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::ContactsController#index as HTML [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Contact Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.5ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (1.6ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.5ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (1.0ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.2ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-21 00:44:30.604047"], ["updated_at", "2015-06-21 00:44:30.604047"]] [1m[35mSQL (0.9ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-21 00:44:30.609500"], ["updated_at", "2015-06-21 00:44:30.609500"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.8ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Image Load (0.6ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.7ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.8ms)[0m [1mROLLBACK[0m [1m[35m (0.3ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Article Load (0.6ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Article Load (0.5ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (1.0ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (3.1ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (1.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[35mPagesCms::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 10ms (ActiveRecord: 1.9ms) [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (20.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (43.1ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.7ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.8ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-21 00:45:44', '2015-06-21 00:45:44', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (2.9ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sliders"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_text_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (96.0ms)[0m [1mCOMMIT[0m [1m[35m (3.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (1.1ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-21 00:45:45.709201"], ["updated_at", "2015-06-21 00:45:45.709201"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[35m (0.6ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.9ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.7ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.7ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.8ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m 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"}}}}}} [1m[35mPagesCms::Account Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.9ms)[0m 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"]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.7ms)[0m 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"]] [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-21 00:45:48.002799"], ["updated_at", "2015-06-21 00:45:48.002799"]] [1m[35mSQL (0.8ms)[0m 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"]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 4], ["created_at", "2015-06-21 00:45:48.010424"], ["updated_at", "2015-06-21 00:45:48.010424"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (1.0ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.5ms)[0m 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) [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::ContactsController#index as HTML [1m[35mPagesCms::Account Exists (1.0ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Contact Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (1.8ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.3ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.5ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.6ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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"} [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 14ms (ActiveRecord: 1.8ms) [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Article Load (0.6ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Article Load (0.9ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.7ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#hello
', '2015-06-21 00:46:24', '2015-06-21 00:46:24', 980190962)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (18.6ms)[0m [1mCOMMIT[0m [1m[35m (7.3ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (43.6ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.0ms)[0m 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"]] [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (3.6ms)[0m 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"]] [1m[36m (1.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.9ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 246ms (ActiveRecord: 56.5ms) [1m[35m (1.5ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (1.1ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (1.9ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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"} [1m[36mPagesCms::Account Load (1.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (1.0ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.9ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (27.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (32.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (13.2ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-21 00:51:16', '2015-06-21 00:51:16', 980190962)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (1.1ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.7ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_sliders"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_text_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (5.9ms)[0m [1mCOMMIT[0m [1m[35m (12.2ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m 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 [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (1.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "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[0m [["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) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.7ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.4ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (1.1ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m 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"}}}}}} [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.3ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-21 00:51:19.109230"], ["updated_at", "2015-06-21 00:51:19.109230"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-21 00:51:19.114422"], ["updated_at", "2015-06-21 00:51:19.114422"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (1.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::ContactsController#index as HTML [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Contact Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[35m (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m 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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[35mPagesCms::Article Load (0.6ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.5ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------------------- PagesCms::PagesControllerTest: test_should_get_show --------------------------------------------------- [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.7ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.3ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (1.6ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.7ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/articles Completed 302 Found in 13ms (ActiveRecord: 1.9ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.5ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Image Load (0.6ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.8ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (1.5ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.6ms)[0m 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"} [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-21 00:51:20.246031"], ["updated_at", "2015-06-21 00:51:20.246031"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#hello
', '2015-06-22 16:47:21', '2015-06-22 16:47:21', 980190962)[0m [1m[35mFixture Insert (1.3ms)[0m 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) [1m[36m (1.5ms)[0m [1mCOMMIT[0m [1m[35m (5.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1[0m [1m[35m (16.5ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "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[0m [["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) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.4ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36m (0.7ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (1.7ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (1.9ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m 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"}}}}}} [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (24.4ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.3ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (1.4ms)[0m 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"]] [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.4ms)[0m 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"]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 16:47:23.678166"], ["updated_at", "2015-06-22 16:47:23.678166"]] [1m[35mSQL (1.3ms)[0m 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"]] [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 16:47:23.685829"], ["updated_at", "2015-06-22 16:47:23.685829"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.8ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.9ms)[0m 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) [1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Article Load (0.3ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (1.0ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (1.7ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (23.0ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["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"]] [1m[35m (1.4ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 33ms (ActiveRecord: 25.1ms) [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Image Load (1.1ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (2.7ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[35mPagesCms::Article Load (2.0ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_contacts"[0m 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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#hello
', '2015-06-22 18:01:58', '2015-06-22 18:01:58', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.3ms)[0m [1mCOMMIT[0m [1m[35m (2.9ms)[0m 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 [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.4ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (20.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.9ms)[0m 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"}}}}}} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (10.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') [1m[36mPagesCms::Account Load (0.7ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 362ms (ActiveRecord: 17.9ms) [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.3ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (2.6ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m 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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#hello
', '2015-06-22 18:02:29', '2015-06-22 18:02:29', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.0ms)[0m [1mCOMMIT[0m [1m[35m (2.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (1.1ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (1.0ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.8ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.4ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 17ms (ActiveRecord: 2.3ms) [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m 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 [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.6ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.7ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 116ms (ActiveRecord: 7.7ms) [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "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[0m [["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) [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Contact Load (0.5ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.3ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[35mPagesCms::Article Load (0.5ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36mPagesCms::Account Load (2.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.5ms)[0m 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", "/"]] [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (42.3ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.8ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (15.9ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:05:31', '2015-06-22 18:05:31', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sliders"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_text_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.3ms)[0m [1mCOMMIT[0m [1m[35m (2.8ms)[0m 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 [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m 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"} [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.9ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (1.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (1.5ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (16.1ms)[0m 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"]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:05:35.122643"], ["updated_at", "2015-06-22 18:05:35.122643"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 18:05:35.138438"], ["updated_at", "2015-06-22 18:05:35.138438"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.6ms)[0m 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) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.5ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Account Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.6ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m 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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36mPagesCms::Account Load (24.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.6ms)[0m 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", "/"]] [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (54.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (138.8ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (1.2ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (1.7ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (15.7ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:06:49', '2015-06-22 18:06:49', 980190962)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.6ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (1.1ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (1.0ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sliders"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_text_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.4ms)[0m [1mCOMMIT[0m [1m[35m (3.2ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.4ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (1.1ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 18:06:49.861738"], ["updated_at", "2015-06-22 18:06:49.861738"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (1.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m 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"} [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.0ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:06:51.306976"], ["updated_at", "2015-06-22 18:06:51.306976"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 4], ["created_at", "2015-06-22 18:06:51.311868"], ["updated_at", "2015-06-22 18:06:51.311868"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.6ms)[0m 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) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.5ms)[0m 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"} [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.3ms) [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/articles Completed 302 Found in 12ms (ActiveRecord: 1.8ms) [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Article Load (0.5ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Article Load (0.3ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.1ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.2ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.7ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::ContactsController#index as HTML [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Contact Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (1.1ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.9ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (1.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36mPagesCms::Account Load (3.1ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.5ms)[0m 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", "/"]] [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (19.2ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (28.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.6ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (254.0ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:07:41', '2015-06-22 18:07:41', 980190962)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.5ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.8ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sliders"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_text_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (1.0ms)[0m [1mCOMMIT[0m [1m[35m (3.1ms)[0m 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 [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.3ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.5ms)[0m 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) [1m[36mPagesCms::Account Load (0.9ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m 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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35mPagesCms::Article Load (0.5ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.4ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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"} [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.7ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.6ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::ImagesController#index as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.8ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (27.8ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:07:47.706704"], ["updated_at", "2015-06-22 18:07:47.706704"]] [1m[35mSQL (24.0ms)[0m 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"]] [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 4], ["created_at", "2015-06-22 18:07:47.737724"], ["updated_at", "2015-06-22 18:07:47.737724"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.6ms)[0m 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) [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (3.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (1.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.6ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36mPagesCms::Account Load (111.9ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m 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 != '/') [1m[36mPagesCms::Account Load (11.8ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m 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 != '/') [1m[36m (515.3ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (3114.8ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (112.8ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (187.7ms)[0m 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) [1m[36m (86.6ms)[0m [1mCREATE 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) [0m [1m[35m (234.8ms)[0m CREATE INDEX "index_pages_cms_articles_on_account_id" ON "pages_cms_articles" USING btree ("account_id") [1m[36m (138.8ms)[0m [1mCREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")[0m [1m[35m (21.4ms)[0m 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) [1m[36m (50.8ms)[0m [1mCREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id")[0m [1m[35m (19.4ms)[0m 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) [1m[36m (6.0ms)[0m [1mCREATE INDEX "index_pages_cms_contact_fields_on_page_block_id" ON "pages_cms_contact_fields" USING btree ("page_block_id")[0m [1m[35m (60.4ms)[0m 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) [1m[36m (40.7ms)[0m [1mCREATE INDEX "index_pages_cms_contacts_on_account_id" ON "pages_cms_contacts" USING btree ("account_id")[0m [1m[35m (8.2ms)[0m 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) [1m[36m (56.6ms)[0m [1mCREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id")[0m [1m[35m (74.0ms)[0m CREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id") [1m[36m (331.0ms)[0m [1mCREATE 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) [0m [1m[35m (78.5ms)[0m CREATE INDEX "index_pages_cms_images_on_account_id" ON "pages_cms_images" USING btree ("account_id") [1m[36m (908.2ms)[0m [1mCREATE 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) [0m [1m[35m (4.0ms)[0m CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id") [1m[36m (9.6ms)[0m [1mCREATE 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) [0m [1m[35m (2.7ms)[0m CREATE INDEX "index_pages_cms_pages_on_account_id" ON "pages_cms_pages" USING btree ("account_id") [1m[36m (2.6ms)[0m [1mCREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")[0m [1m[35m (13.2ms)[0m 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) [1m[36m (20.4ms)[0m [1mCREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")[0m [1m[35m (8.8ms)[0m 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) [1m[36m (284.6ms)[0m [1mCREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id")[0m [1m[35m (7.3ms)[0m CREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id") [1m[36m (69.8ms)[0m [1mCREATE 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) [0m [1m[35m (3.9ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id") [1m[36m (10.0ms)[0m [1mCREATE 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) [0m [1m[35m (2.6ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id") [1m[36m (2.4ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")[0m [1m[35m (116.0ms)[0m ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_c32930e22e" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id") [1m[36m (2.8ms)[0m [1mALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.8ms)[0m ALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (2.7ms)[0m [1mALTER TABLE "pages_cms_contact_fields" ADD CONSTRAINT "fk_rails_04b58dd02a" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (19.5ms)[0m ALTER TABLE "pages_cms_contacts" ADD CONSTRAINT "fk_rails_366edea1e0" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id") [1m[36m (3.0ms)[0m [1mALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.5ms)[0m ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (3.4ms)[0m [1mALTER TABLE "pages_cms_images" ADD CONSTRAINT "fk_rails_226ed17ac0" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id") [0m [1m[35m (3.4ms)[0m ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (2.6ms)[0m [1mALTER TABLE "pages_cms_pages" ADD CONSTRAINT "fk_rails_57ae2bd40e" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id") [0m [1m[35m (2.8ms)[0m ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (2.8ms)[0m [1mALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.9ms)[0m ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (25.9ms)[0m [1mALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (7.9ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (2.5ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (335.5ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [1m[36m (13.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35m (0.8ms)[0m SELECT version FROM "schema_migrations" [1m[36m (79.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150609171657')[0m [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (5.4ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (19.6ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:14:36', '2015-06-22 18:14:36', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.6ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sliders"[0m [1m[35mFixture Insert (0.6ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_text_boxes" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.2ms)[0m [1mCOMMIT[0m [1m[35m (7.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m 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"} [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.6ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.6ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::ContactsController#index as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Contact Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.9ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.9ms)[0m 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"}}}}}} [1m[36mPagesCms::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (101.7ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') [1m[36mPagesCms::Account Load (16.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 472ms (ActiveRecord: 125.6ms) [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.5ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "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[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.3ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#hello
', '2015-06-22 18:16:43', '2015-06-22 18:16:43', 980190962)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (1.0ms)[0m [1mCOMMIT[0m [1m[35m (2.9ms)[0m 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 [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.4ms)[0m 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 [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.9ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:16:45.768202"], ["updated_at", "2015-06-22 18:16:45.768202"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 18:16:45.773018"], ["updated_at", "2015-06-22 18:16:45.773018"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (1.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Article Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["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"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 9ms (ActiveRecord: 1.9ms) [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.4ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 18:16:46.516590"], ["updated_at", "2015-06-22 18:16:46.516590"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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"} [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::ContactsController#index as HTML [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Contact Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.5ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (3.2ms) [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (4.2ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (1.1ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (19.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (1.1ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:18:13', '2015-06-22 18:18:13', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (7.8ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sliders"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_text_boxes" [1m[36mFixture Insert (1.0ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.2ms)[0m [1mCOMMIT[0m [1m[35m (3.1ms)[0m 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 [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.6ms)[0m 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"} [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (4.2ms) [1m[35mPagesCms::Account Load (0.6ms)[0m 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Page Load (0.8ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.6ms)[0m 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"}}}}}} [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.5ms)[0m 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"]] [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (1.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 120ms (ActiveRecord: 8.3ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"980190962"} [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Exists (1.0ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 980190962) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.4ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Image Load (0.7ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 980190962]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#hello
', '2015-06-22 18:19:22', '2015-06-22 18:19:22', 980190962)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (1.1ms)[0m [1mCOMMIT[0m [1m[35m (28.3ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Contact Load (0.4ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.7ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (1.0ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.8ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (2.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.5ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.7ms)[0m 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"}}}}}} [1m[36mPagesCms::Account Exists (1.0ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (1.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 352ms (ActiveRecord: 9.7ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m 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 [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "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[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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"} [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.3ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#hello
', '2015-06-22 18:22:07', '2015-06-22 18:22:07', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.8ms)[0m [1mCOMMIT[0m [1m[35m (95.7ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[35m (0.6ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (25.1ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (19.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (1.5ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:23:04', '2015-06-22 18:23:04', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (12.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sliders"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_text_boxes" [1m[36mFixture Insert (33.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (1.2ms)[0m [1mCOMMIT[0m [1m[35m (4.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[35m (0.6ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (1.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (17.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:24:38', '2015-06-22 18:24:38', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sliders"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_text_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (9.7ms)[0m [1mCOMMIT[0m [1m[35m (29.6ms)[0m 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 [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[35m (0.8ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (62.5ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:25:26', '2015-06-22 18:25:26', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_sliders"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_text_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (22.0ms)[0m [1mCOMMIT[0m [1m[35m (9.4ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[35m (0.2ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (4.3ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:25:49', '2015-06-22 18:25:49', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (1.1ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.5ms)[0m 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') [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sliders"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_text_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.1ms)[0m [1mCOMMIT[0m [1m[35m (3.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[35m (0.7ms)[0m 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (6.6ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:26:06', '2015-06-22 18:26:06', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sliders"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_text_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.1ms)[0m [1mCOMMIT[0m [1m[35m (2.8ms)[0m 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 [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[35m (0.5ms)[0m 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (63.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (3.9ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (84.9ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (39.8ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.9ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:27:59', '2015-06-22 18:27:59', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (22.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "pages_cms_sliders"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "pages_cms_text_boxes" [1m[36mFixture Insert (17.8ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (39.5ms)[0m [1mCOMMIT[0m [1m[35m (143.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[35mPagesCms::Article Load (0.7ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36mPagesCms::Article Load (0.6ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m 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 [1m[36mPagesCms::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.6ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Contact Load (0.9ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.7ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.7ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.6ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (1.1ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.8ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (1.0ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_contacts"[0m 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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.9ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (1.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m 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"}}}}}} [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.8ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.1ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:28:01.786338"], ["updated_at", "2015-06-22 18:28:01.786338"]] [1m[35mSQL (0.8ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 18:28:01.791617"], ["updated_at", "2015-06-22 18:28:01.791617"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (1.1ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.9ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m 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]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.6ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.6ms)[0m 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"} [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.5ms) [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/articles Completed 302 Found in 14ms (ActiveRecord: 2.3ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Account Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.8ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.8ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.1ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.1ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Article Load (0.3ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (1.8ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 18:28:02.657917"], ["updated_at", "2015-06-22 18:28:02.657917"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.3ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#hello
', '2015-06-22 18:29:22', '2015-06-22 18:29:22', 980190962)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (0.9ms)[0m [1mCOMMIT[0m [1m[35m (2.9ms)[0m 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 [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 95ms (ActiveRecord: 2.2ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.4ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Article Load (0.3ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Article Load (0.3ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (1.8ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Article Load (0.3ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (1.1ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Contact Load (0.3ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.1ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (4.3ms)[0m 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"]] [1m[36mSQL (1.8ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 18:29:24.483123"], ["updated_at", "2015-06-22 18:29:24.483123"]] [1m[35mSQL (0.8ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 4], ["created_at", "2015-06-22 18:29:24.491335"], ["updated_at", "2015-06-22 18:29:24.491335"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.7ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (1.7ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.7ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_contacts" [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (5.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:29:44', '2015-06-22 18:29:44', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_sliders"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_text_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (1.0ms)[0m [1mCOMMIT[0m [1m[35m (3.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::ContactsControllerTest: test_submit_a_contact_form ------------------------------------------------------------ [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_contacts" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (35.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (19.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.8ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:37:27', '2015-06-22 18:37:27', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.6ms)[0m 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) [1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (3.9ms)[0m 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) [1m[36mFixture Insert (1.7ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (13.8ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_sliders"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_text_boxes" [1m[36mFixture Insert (0.8ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36m (1.4ms)[0m [1mCOMMIT[0m [1m[35m (3.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (1.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m 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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.5ms)[0m 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"} [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.9ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Contact Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (1.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Article Load (0.5ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 8ms (ActiveRecord: 1.7ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.1ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.8ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 160ms (ActiveRecord: 8.5ms) [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "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[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (2.0ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.8ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36mPagesCms::Account Load (2.7ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.7ms)[0m 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", "/"]] [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (35.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (30.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (1.0ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 18:47:08', '2015-06-22 18:47:08', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (1.4ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (26.0ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (1.2ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.6ms)[0m 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') [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sliders"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_text_boxes" [1m[36mFixture Insert (1.0ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (10.6ms)[0m [1mCOMMIT[0m [1m[35m (5.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[36mPagesCms::Image Load (0.6ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.6ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (1.1ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 65ms (ActiveRecord: 1.9ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Article Load (0.3ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (1.1ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (1.0ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#new as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.1ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[35mPagesCms::Account Load (1.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.1ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.1ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.7ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1[0m [["account_id", 1]] [1m[35mPagesCms::PageBlock Load (0.5ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.4ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.4ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ContactField Load (0.4ms)[0m [1mSELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.4ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.6ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.6ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.8ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.9ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.8ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.7ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (13.5ms) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.6ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m [1m[35mPagesCms::Slider Load (0.5ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.9ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.4ms)[0m 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"}}}}}} [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m 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"]] [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.8ms)[0m 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"]] [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.8ms)[0m 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"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.7ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 107ms (ActiveRecord: 7.8ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.6ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Contact Load (0.5ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.8ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.7ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m 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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36mPagesCms::Article Load (0.3ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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"} [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#hello
', '2015-06-22 19:01:00', '2015-06-22 19:01:00', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (2.1ms)[0m [1mCOMMIT[0m [1m[35m (10.2ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (1.2ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.4ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.4ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ContactField Load (0.4ms)[0m SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.4ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.6ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.7ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.6ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.7ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) [1m[36mPagesCms::Slider Load (0.4ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m 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"}}}}}} [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.9ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (1.6ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.8ms)[0m 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"]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (1.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 401ms (ActiveRecord: 9.6ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (1.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "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[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (191.3ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1559.2ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (166.6ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (18.5ms)[0m 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) [1m[36m (22.2ms)[0m [1mCREATE 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) [0m [1m[35m (14.6ms)[0m CREATE INDEX "index_pages_cms_articles_on_account_id" ON "pages_cms_articles" USING btree ("account_id") [1m[36m (2.4ms)[0m [1mCREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")[0m [1m[35m (4.7ms)[0m 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) [1m[36m (11.4ms)[0m [1mCREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id")[0m [1m[35m (11.0ms)[0m 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) [1m[36m (2.5ms)[0m [1mCREATE INDEX "index_pages_cms_contact_fields_on_page_block_id" ON "pages_cms_contact_fields" USING btree ("page_block_id")[0m [1m[35m (12.8ms)[0m 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) [1m[36m (8.2ms)[0m [1mCREATE INDEX "index_pages_cms_contacts_on_account_id" ON "pages_cms_contacts" USING btree ("account_id")[0m [1m[35m (9.7ms)[0m 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) [1m[36m (2.0ms)[0m [1mCREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id")[0m [1m[35m (2.0ms)[0m CREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id") [1m[36m (6.8ms)[0m [1mCREATE 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) [0m [1m[35m (2.4ms)[0m CREATE INDEX "index_pages_cms_images_on_account_id" ON "pages_cms_images" USING btree ("account_id") [1m[36m (46.0ms)[0m [1mCREATE 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) [0m [1m[35m (3.2ms)[0m CREATE INDEX "index_pages_cms_markdown_texts_on_page_block_id" ON "pages_cms_markdown_texts" USING btree ("page_block_id") [1m[36m (76.8ms)[0m [1mCREATE 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) [0m [1m[35m (3.2ms)[0m CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id") [1m[36m (8.3ms)[0m [1mCREATE 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) [0m [1m[35m (2.3ms)[0m CREATE INDEX "index_pages_cms_pages_on_account_id" ON "pages_cms_pages" USING btree ("account_id") [1m[36m (2.2ms)[0m [1mCREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")[0m [1m[35m (14.1ms)[0m 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) [1m[36m (5.2ms)[0m [1mCREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")[0m [1m[35m (7.0ms)[0m 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) [1m[36m (134.9ms)[0m [1mCREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id")[0m [1m[35m (8.5ms)[0m CREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id") [1m[36m (28.1ms)[0m [1mCREATE 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) [0m [1m[35m (2.5ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id") [1m[36m (6.8ms)[0m [1mCREATE 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) [0m [1m[35m (2.1ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id") [1m[36m (2.3ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")[0m [1m[35m (6.7ms)[0m ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_c32930e22e" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id") [1m[36m (3.0ms)[0m [1mALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.8ms)[0m ALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (11.3ms)[0m [1mALTER TABLE "pages_cms_contact_fields" ADD CONSTRAINT "fk_rails_04b58dd02a" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (3.1ms)[0m ALTER TABLE "pages_cms_contacts" ADD CONSTRAINT "fk_rails_366edea1e0" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id") [1m[36m (14.5ms)[0m [1mALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.5ms)[0m ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (2.4ms)[0m [1mALTER TABLE "pages_cms_images" ADD CONSTRAINT "fk_rails_226ed17ac0" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id") [0m [1m[35m (2.8ms)[0m ALTER TABLE "pages_cms_markdown_texts" ADD CONSTRAINT "fk_rails_73f6281917" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (3.0ms)[0m [1mALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (2.8ms)[0m ALTER TABLE "pages_cms_pages" ADD CONSTRAINT "fk_rails_57ae2bd40e" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id") [1m[36m (2.8ms)[0m [1mALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (4.6ms)[0m ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (3.1ms)[0m [1mALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (2.6ms)[0m ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (2.9ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.6ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (27.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m [1m[35m (2.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.7ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (17.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (5.3ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:16:54', '2015-06-22 21:16:54', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.6ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:16:54', '2015-06-22 21:16:54', 980190962)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.7ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35m (1.3ms)[0m COMMIT [1m[36m (9.0ms)[0m [1mALTER 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[0m [1m[35m (0.3ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.5ms)[0m 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) [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m 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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m 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 [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Contact Load (0.4ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Load (0.2ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["content", "This is *bongos*, indeed"], ["created_at", "2015-06-22 21:16:58.213740"], ["updated_at", "2015-06-22 21:16:58.213740"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] [1m[36mPagesCms::PageBlock Load (0.3ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.3ms)[0m 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m 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"}}}}}} [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.2ms)[0m 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"]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:16:58.716003"], ["updated_at", "2015-06-22 21:16:58.716003"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 21:16:58.721127"], ["updated_at", "2015-06-22 21:16:58.721127"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (13.9ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (15.5ms)[0m 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) [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_should_get_new ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Article Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.3ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/articles Completed 302 Found in 9ms (ActiveRecord: 1.7ms) [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#hello
', '2015-06-22 21:18:25', '2015-06-22 21:18:25', 980190962) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.2ms)[0m COMMIT [1m[36m (3.4ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Load (0.5ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.4ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (1.1ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.6ms)[0m 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"}}}}}} [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.8ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 231ms (ActiveRecord: 7.5ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "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[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.5ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.3ms)[0m 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.9ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 21ms (ActiveRecord: 1.9ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Article Load (0.3ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (1.0ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m 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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Contact Load (0.3ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#hello
', '2015-06-22 21:19:26', '2015-06-22 21:19:26', 980190962) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.2ms)[0m COMMIT [1m[36m (3.3ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.9ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:19:28.181784"], ["updated_at", "2015-06-22 21:19:28.181784"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 4], ["created_at", "2015-06-22 21:19:28.187339"], ["updated_at", "2015-06-22 21:19:28.187339"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.8ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "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[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.7ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.8ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.4ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::MarkdownText Load (0.5ms)[0m [1mSELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.3ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ContactField Load (0.3ms)[0m [1mSELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.3ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.3ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.0ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.6ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m [1m[35mPagesCms::Slider Load (0.3ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (113.6ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (2133.1ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (15.9ms)[0m 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) [1m[36m (7.6ms)[0m [1mCREATE 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) [0m [1m[35m (2.6ms)[0m CREATE INDEX "index_pages_cms_articles_on_account_id" ON "pages_cms_articles" USING btree ("account_id") [1m[36m (2.8ms)[0m [1mCREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")[0m [1m[35m (4.9ms)[0m 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) [1m[36m (2.1ms)[0m [1mCREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id")[0m [1m[35m (6.7ms)[0m 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) [1m[36m (2.6ms)[0m [1mCREATE INDEX "index_pages_cms_contact_fields_on_page_block_id" ON "pages_cms_contact_fields" USING btree ("page_block_id")[0m [1m[35m (8.6ms)[0m 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) [1m[36m (2.3ms)[0m [1mCREATE INDEX "index_pages_cms_contacts_on_account_id" ON "pages_cms_contacts" USING btree ("account_id")[0m [1m[35m (7.2ms)[0m 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) [1m[36m (3.5ms)[0m [1mCREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id")[0m [1m[35m (3.1ms)[0m CREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id") [1m[36m (6.6ms)[0m [1mCREATE 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) [0m [1m[35m (2.3ms)[0m CREATE INDEX "index_pages_cms_images_on_account_id" ON "pages_cms_images" USING btree ("account_id") [1m[36m (6.6ms)[0m [1mCREATE 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) [0m [1m[35m (19.8ms)[0m CREATE INDEX "index_pages_cms_markdown_texts_on_page_block_id" ON "pages_cms_markdown_texts" USING btree ("page_block_id") [1m[36m (7.0ms)[0m [1mCREATE 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) [0m [1m[35m (2.5ms)[0m CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id") [1m[36m (7.2ms)[0m [1mCREATE 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) [0m [1m[35m (22.2ms)[0m CREATE INDEX "index_pages_cms_pages_on_account_id" ON "pages_cms_pages" USING btree ("account_id") [1m[36m (16.2ms)[0m [1mCREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")[0m [1m[35m (9.5ms)[0m 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) [1m[36m (2.4ms)[0m [1mCREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")[0m [1m[35m (7.4ms)[0m 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) [1m[36m (2.2ms)[0m [1mCREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id")[0m [1m[35m (1.9ms)[0m CREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id") [1m[36m (6.9ms)[0m [1mCREATE 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) [0m [1m[35m (4.1ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id") [1m[36m (7.5ms)[0m [1mCREATE 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) [0m [1m[35m (4.6ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id") [1m[36m (2.2ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")[0m [1m[35m (4.2ms)[0m ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_c32930e22e" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id") [1m[36m (2.7ms)[0m [1mALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (3.7ms)[0m ALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (3.3ms)[0m [1mALTER TABLE "pages_cms_contact_fields" ADD CONSTRAINT "fk_rails_04b58dd02a" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (4.8ms)[0m ALTER TABLE "pages_cms_contacts" ADD CONSTRAINT "fk_rails_366edea1e0" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id") [1m[36m (2.8ms)[0m [1mALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (3.0ms)[0m ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (2.9ms)[0m [1mALTER TABLE "pages_cms_images" ADD CONSTRAINT "fk_rails_226ed17ac0" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id") [0m [1m[35m (2.9ms)[0m ALTER TABLE "pages_cms_markdown_texts" ADD CONSTRAINT "fk_rails_73f6281917" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (3.2ms)[0m [1mALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (2.9ms)[0m ALTER TABLE "pages_cms_pages" ADD CONSTRAINT "fk_rails_57ae2bd40e" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id") [1m[36m (3.7ms)[0m [1mALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (3.2ms)[0m ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (4.7ms)[0m [1mALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (22.2ms)[0m ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (4.2ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (3.4ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (4.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m [1m[35m (2.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.5ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (5.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.7ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:20:32', '2015-06-22 21:20:32', 980190962)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:20:32', '2015-06-22 21:20:32', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (13.2ms)[0m COMMIT [1m[36m (10.8ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 95ms (ActiveRecord: 2.4ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Article Load (0.3ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.5ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m 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"}}}}}} [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.2ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:20:34.021907"], ["updated_at", "2015-06-22 21:20:34.021907"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 21:20:34.026769"], ["updated_at", "2015-06-22 21:20:34.026769"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (1.1ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.4ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1[0m [["account_id", 1]] [1m[35mPagesCms::PageBlock Load (0.4ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.5ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::MarkdownText Load (0.3ms)[0m SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.3ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ContactField Load (0.3ms)[0m SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.3ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.3ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.6ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) [1m[36mPagesCms::Slider Load (0.4ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Contact Load (0.4ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Load (0.2ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (1.9ms) [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 21:20:34.857067"], ["updated_at", "2015-06-22 21:20:34.857067"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.1ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.1ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#hello
', '2015-06-22 21:22:09', '2015-06-22 21:22:09', 980190962) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.1ms)[0m COMMIT [1m[36m (8.1ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML [1m[35mPagesCms::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.1ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:22:11.576755"], ["updated_at", "2015-06-22 21:22:11.576755"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 4], ["created_at", "2015-06-22 21:22:11.581609"], ["updated_at", "2015-06-22 21:22:11.581609"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.9ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "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[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.3ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::MarkdownText Load (0.4ms)[0m [1mSELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.4ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ContactField Load (0.4ms)[0m [1mSELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.3ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.3ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.4ms) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.5ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m [1m[35mPagesCms::Slider Load (0.5ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["content", "This is *bongos*, indeed"], ["created_at", "2015-06-22 21:22:12.285385"], ["updated_at", "2015-06-22 21:22:12.285385"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/articles Completed 302 Found in 10ms (ActiveRecord: 1.9ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[35mPagesCms::Article Load (0.5ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36mPagesCms::Article Load (0.3ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (15.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (18.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:23:05', '2015-06-22 21:23:05', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (1.0ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:23:05', '2015-06-22 21:23:05', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (1.0ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.2ms)[0m COMMIT [1m[36m (3.4ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 95ms (ActiveRecord: 2.3ms) [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m 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 [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.6ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (1.1ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Contact Load (0.4ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.9ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.9ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1[0m [["account_id", 1]] [1m[35mPagesCms::PageBlock Load (0.4ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.4ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::MarkdownText Load (0.3ms)[0m SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.4ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ContactField Load (0.4ms)[0m SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.4ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.7ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.6ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.7ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (1.5ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) [1m[36mPagesCms::Slider Load (0.4ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m 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"}}}}}} [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.9ms)[0m 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"]] [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:23:07.567706"], ["updated_at", "2015-06-22 21:23:07.567706"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 21:23:07.576090"], ["updated_at", "2015-06-22 21:23:07.576090"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (1.1ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (4.9ms)[0m 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 [1m[36m (3.9ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_accounts"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_articles"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.5ms)[0m [1mALTER 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[0m [1m[35m (3.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (4.7ms)[0m 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 [1m[36m (3.7ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_accounts"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_articles"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.9ms)[0m [1mALTER 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[0m [1m[35m (3.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (4.3ms)[0m 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 [1m[36m (3.9ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_accounts"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_articles"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.5ms)[0m [1mALTER 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[0m [1m[35m (3.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (3.4ms)[0m 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 [1m[36m (3.7ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_accounts"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_articles"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.6ms)[0m [1mALTER 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[0m [1m[35m (3.6ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (3.6ms)[0m 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 [1m[36m (3.6ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_accounts"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_articles"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.9ms)[0m [1mALTER 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[0m [1m[35m (3.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (3.5ms)[0m 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 [1m[36m (3.6ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_accounts"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_articles"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.6ms)[0m [1mALTER 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[0m [1m[35m (3.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (3.4ms)[0m 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 [1m[36m (3.6ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_accounts"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_articles"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.6ms)[0m [1mALTER 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[0m [1m[35m (3.4ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (3.6ms)[0m 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 [1m[36m (3.5ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_accounts"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_articles"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.6ms)[0m [1mALTER 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[0m [1m[35m (3.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (3.5ms)[0m 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 [1m[36m (3.5ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_accounts"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_articles"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.7ms)[0m [1mALTER 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[0m [1m[35m (3.4ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (3.5ms)[0m 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 [1m[36m (3.5ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_accounts"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "pages_cms_articles"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m 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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.4ms)[0m [1mALTER 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[0m [1m[35m (3.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (3.4ms)[0m 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 [1m[36mActiveRecord::SchemaMigration Load (1.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (39.5ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (19.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (1.2ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (16.8ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.8ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:44:51', '2015-06-22 21:44:51', 980190962)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (1.1ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:44:51', '2015-06-22 21:44:51', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (1.0ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (2.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.6ms)[0m COMMIT [1m[36m (7.5ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m 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"} [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (27.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Contact Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 21:44:53.396486"], ["updated_at", "2015-06-22 21:44:53.396486"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.1ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.7ms) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] [1m[36mPagesCms::PageBlock Load (0.3ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.5ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::MarkdownText Load (0.3ms)[0m [1mSELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.4ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ContactField Load (0.4ms)[0m [1mSELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.5ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.6ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.9ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.5ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m [1m[35mPagesCms::Slider Load (0.4ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m 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"}}}}}} [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.7ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 77ms (ActiveRecord: 6.9ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (62.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (19.1ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (1.1ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:48:07', '2015-06-22 21:48:07', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (6.6ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:48:07', '2015-06-22 21:48:07', 980190962)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.9ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.0ms)[0m COMMIT [1m[36m (3.1ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[35mPagesCms::Article Load (0.6ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m 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"} [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.7ms)[0m 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"}}}}}} [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (1.1ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 240ms (ActiveRecord: 8.6ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.3ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] [1m[36mPagesCms::PageBlock Load (0.3ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.3ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::MarkdownText Load (0.3ms)[0m [1mSELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.3ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ContactField Load (0.4ms)[0m [1mSELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.3ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.3ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.9ms) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.5ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m [1m[35mPagesCms::Slider Load (0.4ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "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[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (1.8ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.5ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Contact Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.1ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.1ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#MyText
', 'MyString', NULL, '2015-06-22 21:48:54', '2015-06-22 21:48:54', 298486374) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:48:54', '2015-06-22 21:48:54', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:48:54', '2015-06-22 21:48:54', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (1.1ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.3ms)[0m COMMIT [1m[36m (3.1ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Contact Load (0.4ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.6ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (1.0ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m 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"}}}}}} [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.0ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:48:55.706787"], ["updated_at", "2015-06-22 21:48:55.706787"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 21:48:55.711408"], ["updated_at", "2015-06-22 21:48:55.711408"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.8ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.4ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1[0m [["account_id", 1]] [1m[35mPagesCms::PageBlock Load (0.4ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.3ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::MarkdownText Load (0.4ms)[0m SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.3ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ContactField Load (0.5ms)[0m SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.3ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.4ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.6ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) [1m[36mPagesCms::Slider Load (0.4ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m 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}} [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Unpermitted parameter: content_wysiwyg [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 10ms (ActiveRecord: 1.8ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 21:48:56.508255"], ["updated_at", "2015-06-22 21:48:56.508255"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#MyText
', 'MyString', NULL, '2015-06-22 21:50:43', '2015-06-22 21:50:43', 298486374) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (1.0ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:50:43', '2015-06-22 21:50:43', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (12.7ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:50:44', '2015-06-22 21:50:44', 980190962)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (1.1ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.1ms)[0m COMMIT [1m[36m (3.3ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m 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"} [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.4ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1[0m [["account_id", 1]] [1m[35mPagesCms::PageBlock Load (0.4ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.4ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::MarkdownText Load (0.3ms)[0m SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.3ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ContactField Load (0.3ms)[0m SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.3ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.6ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.5ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) [1m[36mPagesCms::Slider Load (0.6ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m 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"}}}}}} [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.9ms)[0m 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"]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:50:46.014900"], ["updated_at", "2015-06-22 21:50:46.014900"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 21:50:46.019858"], ["updated_at", "2015-06-22 21:50:46.019858"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (1.7ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.5ms)[0m 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) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.7ms)[0m 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]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 21:50:46.149126"], ["updated_at", "2015-06-22 21:50:46.149126"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#MyText
', 'MyString', NULL, '2015-06-22 21:51:13', '2015-06-22 21:51:13', 298486374) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:51:13', '2015-06-22 21:51:13', 980190962)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:51:13', '2015-06-22 21:51:13', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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)[0m [1m[35m (1.3ms)[0m COMMIT [1m[36m (3.9ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.4ms)[0m 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 [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.7ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.1ms)[0m 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"]] [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.7ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 283ms (ActiveRecord: 7.9ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.4ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1[0m [["account_id", 1]] [1m[35mPagesCms::PageBlock Load (0.4ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.4ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::MarkdownText Load (0.4ms)[0m SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.3ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ContactField Load (0.3ms)[0m SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.3ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.3ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.8ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.8ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.5ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) [1m[36mPagesCms::Slider Load (0.4ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Contact Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.3ms) [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 21:51:16.608916"], ["updated_at", "2015-06-22 21:51:16.608916"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (1.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content_wysiwyg"=>"something", "tags"=>"something", "draft"=>true}} [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Unpermitted parameter: content_wysiwyg [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/articles Completed 302 Found in 10ms (ActiveRecord: 2.0ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Article Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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"} [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (16.4ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (18.1ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (9.0ms)[0m 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) [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (10.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:52:04', '2015-06-22 21:52:04', 980190962)[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.7ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (14.5ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:52:05', '2015-06-22 21:52:05', 980190962)[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (1.0ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35m (2.3ms)[0m COMMIT [1m[36m (3.6ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m 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 [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Contact Load (0.4ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m 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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.4ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.8ms)[0m 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}} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Unpermitted parameter: content_wysiwyg [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 10ms (ActiveRecord: 2.0ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (1.0ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m 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"}}}}}} [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.9ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:52:07.002539"], ["updated_at", "2015-06-22 21:52:07.002539"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 21:52:07.007212"], ["updated_at", "2015-06-22 21:52:07.007212"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (1.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.5ms)[0m 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) [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.4ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1[0m [["account_id", 1]] [1m[35mPagesCms::PageBlock Load (0.4ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.3ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::MarkdownText Load (0.4ms)[0m SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.3ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ContactField Load (0.3ms)[0m SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.3ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.3ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.5ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) [1m[36mPagesCms::Slider Load (0.5ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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"} [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#MyText
', 'MyString', NULL, '2015-06-22 21:54:19', '2015-06-22 21:54:19', 298486374) [1m[36mFixture Delete (1.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.8ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:54:19', '2015-06-22 21:54:19', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:54:19', '2015-06-22 21:54:19', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.2ms)[0m COMMIT [1m[36m (3.4ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.5ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.9ms)[0m 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"]] [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.2ms)[0m 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"]] [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:54:25.727772"], ["updated_at", "2015-06-22 21:54:25.727772"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 4], ["created_at", "2015-06-22 21:54:25.735313"], ["updated_at", "2015-06-22 21:54:25.735313"]] [1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.9ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ [1m[36mPagesCms::Article Load (0.7ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.4ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content_wysiwyg"=>"something", "tags"=>"something", "draft"=>true}} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Unpermitted parameter: content_wysiwyg [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/articles Completed 302 Found in 13ms (ActiveRecord: 2.0ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Article Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (8.7ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Contact Load (0.4ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.1ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Load (0.2ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (1.0ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (4.4ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (28.0ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (1.1ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:56:02', '2015-06-22 21:56:02', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (7.9ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:56:02', '2015-06-22 21:56:02', 980190962)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (1.1ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.0ms)[0m COMMIT [1m[36m (3.4ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.6ms)[0m 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}} [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Unpermitted parameter: content_wysiwyg [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 20ms (ActiveRecord: 2.5ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Article Load (0.3ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Contact Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (1.1ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.2ms) [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m 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"}}}}}} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.9ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 21:56:05.040938"], ["updated_at", "2015-06-22 21:56:05.040938"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 4], ["created_at", "2015-06-22 21:56:05.045836"], ["updated_at", "2015-06-22 21:56:05.045836"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.8ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.4ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1[0m [["account_id", 1]] [1m[35mPagesCms::PageBlock Load (0.4ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.3ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::MarkdownText Load (0.3ms)[0m SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.3ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ContactField Load (0.4ms)[0m SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.4ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.3ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.5ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) [1m[36mPagesCms::Slider Load (0.4ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.1ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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"} [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[35mPagesCms::Article Load (0.3ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.4ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (4.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (18.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (1.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:57:05', '2015-06-22 21:57:05', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (13.5ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:57:05', '2015-06-22 21:57:05', 980190962)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (1.0ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (1.0ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.4ms)[0m COMMIT [1m[36m (3.2ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m 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 [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Contact Load (0.4ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.7ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.8ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content_wysiwyg"=>"something", "tags"=>"something", "draft"=>true}} [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Unpermitted parameter: content_wysiwyg [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/articles Completed 302 Found in 20ms (ActiveRecord: 2.0ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.4ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (1.1ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.4ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::MarkdownText Load (0.3ms)[0m [1mSELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.3ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ContactField Load (0.3ms)[0m [1mSELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.4ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.6ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (5.4ms) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.5ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m [1m[35mPagesCms::Slider Load (0.4ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (1.0ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "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[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one 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) [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m 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"}}}}}} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.9ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 442ms (ActiveRecord: 6.7ms) [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#MyText
', 'MyString', NULL, '2015-06-22 21:57:38', '2015-06-22 21:57:38', 298486374) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (1.1ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:57:38', '2015-06-22 21:57:38', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (8.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:57:38', '2015-06-22 21:57:38', 980190962)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (1.0ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.4ms)[0m COMMIT [1m[36m (3.3ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.5ms)[0m 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) [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m 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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (1.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.5ms)[0m 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"} [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.6ms)[0m 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"}}}}}} [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.8ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 273ms (ActiveRecord: 7.8ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.3ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::MarkdownText Load (0.4ms)[0m [1mSELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.3ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ContactField Load (0.5ms)[0m [1mSELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.3ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.4ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.6ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.9ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.5ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m [1m[35mPagesCms::Slider Load (0.4ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "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[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one 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) [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Contact Load (0.5ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content_wysiwyg"=>"something", "tags"=>"something", "draft"=>true}} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] Unpermitted parameter: content_wysiwyg [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/articles Completed 302 Found in 9ms (ActiveRecord: 1.7ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.8ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.3ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#MyText
', 'MyString', NULL, '2015-06-22 21:58:25', '2015-06-22 21:58:25', 298486374) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (20.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:58:25', '2015-06-22 21:58:25', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (18.4ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:58:25', '2015-06-22 21:58:25', 980190962)[0m [1m[35mFixture Insert (0.6ms)[0m 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) [1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (1.1ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.1ms)[0m COMMIT [1m[36m (3.3ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.6ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.6ms)[0m 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"}}}}}} [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (1.1ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 88ms (ActiveRecord: 8.3ms) [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.5ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.3ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::MarkdownText Load (0.4ms)[0m [1mSELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.3ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ContactField Load (0.3ms)[0m [1mSELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.3ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.3ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (6.4ms) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.8ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m [1m[35mPagesCms::Slider Load (0.4ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.4ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.7ms)[0m 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]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Contact Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.0ms) [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#MyText
', 'MyString', NULL, '2015-06-22 21:59:18', '2015-06-22 21:59:18', 298486374) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:59:18', '2015-06-22 21:59:18', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 21:59:18', '2015-06-22 21:59:18', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35m (1.2ms)[0m COMMIT [1m[36m (3.3ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.5ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.6ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.9ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "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[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.6ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.6ms)[0m 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"}}}}}} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.5ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (1.1ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 269ms (ActiveRecord: 8.0ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.3ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.3ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::MarkdownText Load (0.3ms)[0m [1mSELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.3ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ContactField Load (0.3ms)[0m [1mSELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.3ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.3ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.6ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (9.0ms) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.5ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m [1m[35mPagesCms::Slider Load (0.4ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.4ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.3ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Contact Load (0.3ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.1ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1[0m [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.6ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (2.0ms) [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m 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}} [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Unpermitted parameter: content_wysiwyg [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 10ms (ActiveRecord: 1.7ms) [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m 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 [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Article Load (0.3ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#MyText
', 'MyString', NULL, '2015-06-22 22:02:30', '2015-06-22 22:02:30', 298486374) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (19.8ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:02:30', '2015-06-22 22:02:30', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (10.9ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:02:30', '2015-06-22 22:02:30', 980190962)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.6ms)[0m COMMIT [1m[36m (3.2ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.4ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.7ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m 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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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"} [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.8ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.8ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 160ms (ActiveRecord: 7.5ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.7ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.5ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.3ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::MarkdownText Load (0.3ms)[0m [1mSELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.3ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ContactField Load (0.3ms)[0m [1mSELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.3ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.4ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.0ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.5ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m [1m[35mPagesCms::Slider Load (0.4ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (1414.6ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (2298.3ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (11.4ms)[0m 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) [1m[36m (8.0ms)[0m [1mCREATE 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) [0m [1m[35m (2.7ms)[0m CREATE INDEX "index_pages_cms_articles_on_account_id" ON "pages_cms_articles" USING btree ("account_id") [1m[36m (2.2ms)[0m [1mCREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")[0m [1m[35m (4.9ms)[0m 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) [1m[36m (2.3ms)[0m [1mCREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id")[0m [1m[35m (6.6ms)[0m 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) [1m[36m (2.2ms)[0m [1mCREATE INDEX "index_pages_cms_contact_fields_on_page_block_id" ON "pages_cms_contact_fields" USING btree ("page_block_id")[0m [1m[35m (6.6ms)[0m 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) [1m[36m (2.5ms)[0m [1mCREATE INDEX "index_pages_cms_contacts_on_account_id" ON "pages_cms_contacts" USING btree ("account_id")[0m [1m[35m (6.6ms)[0m 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) [1m[36m (2.0ms)[0m [1mCREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id")[0m [1m[35m (2.4ms)[0m CREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id") [1m[36m (7.3ms)[0m [1mCREATE 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) [0m [1m[35m (27.5ms)[0m CREATE INDEX "index_pages_cms_images_on_account_id" ON "pages_cms_images" USING btree ("account_id") [1m[36m (6.5ms)[0m [1mCREATE 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) [0m [1m[35m (3.1ms)[0m CREATE INDEX "index_pages_cms_markdown_texts_on_page_block_id" ON "pages_cms_markdown_texts" USING btree ("page_block_id") [1m[36m (6.8ms)[0m [1mCREATE 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) [0m [1m[35m (2.2ms)[0m CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id") [1m[36m (7.4ms)[0m [1mCREATE 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) [0m [1m[35m (2.1ms)[0m CREATE INDEX "index_pages_cms_pages_on_account_id" ON "pages_cms_pages" USING btree ("account_id") [1m[36m (2.2ms)[0m [1mCREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")[0m [1m[35m (7.9ms)[0m 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) [1m[36m (2.5ms)[0m [1mCREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")[0m [1m[35m (13.9ms)[0m 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) [1m[36m (2.8ms)[0m [1mCREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id")[0m [1m[35m (2.9ms)[0m CREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id") [1m[36m (8.0ms)[0m [1mCREATE 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) [0m [1m[35m (2.3ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id") [1m[36m (7.1ms)[0m [1mCREATE 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) [0m [1m[35m (3.5ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id") [1m[36m (2.6ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")[0m [1m[35m (3.9ms)[0m ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_c32930e22e" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id") [1m[36m (3.1ms)[0m [1mALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (3.9ms)[0m ALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (3.4ms)[0m [1mALTER TABLE "pages_cms_contact_fields" ADD CONSTRAINT "fk_rails_04b58dd02a" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (3.1ms)[0m ALTER TABLE "pages_cms_contacts" ADD CONSTRAINT "fk_rails_366edea1e0" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id") [1m[36m (3.1ms)[0m [1mALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.7ms)[0m ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (2.9ms)[0m [1mALTER TABLE "pages_cms_images" ADD CONSTRAINT "fk_rails_226ed17ac0" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id") [0m [1m[35m (3.2ms)[0m ALTER TABLE "pages_cms_markdown_texts" ADD CONSTRAINT "fk_rails_73f6281917" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (3.0ms)[0m [1mALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (3.1ms)[0m ALTER TABLE "pages_cms_pages" ADD CONSTRAINT "fk_rails_57ae2bd40e" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id") [1m[36m (3.3ms)[0m [1mALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (3.0ms)[0m ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (19.7ms)[0m [1mALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [0m [1m[35m (3.3ms)[0m ALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (3.0ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (3.0ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (3.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m [1m[35m (2.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.7ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150609171657') [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (5.6ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (13.2ms)[0m [1mINSERT 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')[0m 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') [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (5.0ms)[0m [1mALTER 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[0m [1m[35m (3.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m 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') [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (3.3ms)[0m [1mALTER 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[0m [1m[35m (3.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m 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') [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (36.8ms)[0m [1mALTER 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[0m [1m[35m (3.4ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m 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') [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.4ms)[0m [1mALTER 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[0m [1m[35m (4.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m 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') [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.6ms)[0m [1mALTER 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[0m [1m[35m (3.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m 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') [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (5.2ms)[0m [1mALTER 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[0m [1m[35m (3.7ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m 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') [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.5ms)[0m [1mALTER 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[0m [1m[35m (3.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m 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') [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (5.2ms)[0m [1mALTER 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[0m [1m[35m (3.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m 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') [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.4ms)[0m [1mALTER 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[0m [1m[35m (4.7ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m 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') [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.5ms)[0m [1mALTER 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[0m [1m[35m (3.7ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m 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') [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.5ms)[0m [1mALTER 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[0m [1m[35m (3.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m 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') [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.5ms)[0m [1mALTER 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[0m [1m[35m (3.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m 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') [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.5ms)[0m [1mALTER 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[0m [1m[35m (4.4ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m 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') [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.4ms)[0m [1mALTER 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[0m [1m[35m (4.2ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m 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') [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.9ms)[0m [1mALTER 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[0m [1m[35m (3.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m 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') [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.3ms)[0m [1mALTER 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[0m [1m[35m (4.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m 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') [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.9ms)[0m [1mALTER 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[0m [1m[35m (4.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m 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') [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.5ms)[0m [1mALTER 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[0m [1m[35m (4.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m 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') [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.5ms)[0m [1mALTER 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[0m [1m[35m (3.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m 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') [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.4ms)[0m [1mALTER 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[0m [1m[35m (3.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m 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') [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.4ms)[0m [1mALTER 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[0m [1m[35m (5.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m 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') [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (3.6ms)[0m [1mALTER 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[0m [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (4.6ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.7ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:08:40', '2015-06-22 22:08:40', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:08:40', '2015-06-22 22:08:40', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (42.4ms)[0m COMMIT [1m[36m (8.9ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Load (0.5ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.4ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.5ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1[0m [["account_id", 1]] [1m[35mPagesCms::PageBlock Load (0.3ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.4ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::MarkdownText Load (0.3ms)[0m SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.3ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ContactField Load (0.3ms)[0m SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.6ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.6ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.5ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) [1m[36mPagesCms::Slider Load (0.4ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m 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"}}}}}} [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.5ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 22:08:42.215922"], ["updated_at", "2015-06-22 22:08:42.215922"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-22 22:08:42.221412"], ["updated_at", "2015-06-22 22:08:42.221412"]] [1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (14.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m 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]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Contact Load (0.4ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (4.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (29.9ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (1.7ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:09:52', '2015-06-22 22:09:52', 980190962)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:09:52', '2015-06-22 22:09:52', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (1.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.1ms)[0m COMMIT [1m[36m (3.4ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ImagesController#index as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36m (0.6ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (1.9ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.5ms)[0m 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"} [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 22:09:54.859659"], ["updated_at", "2015-06-22 22:09:54.859659"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.5ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (32.1ms) [1m[35mPagesCms::Account Load (0.5ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 9ms (ActiveRecord: 1.6ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Article Load (0.3ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.9ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m 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"}}}}}} [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.8ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.9ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 22:09:55.183714"], ["updated_at", "2015-06-22 22:09:55.183714"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 4], ["created_at", "2015-06-22 22:09:55.190121"], ["updated_at", "2015-06-22 22:09:55.190121"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.7ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.3ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::MarkdownText Load (0.3ms)[0m [1mSELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.3ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ContactField Load (0.5ms)[0m [1mSELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (1.3ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.4ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.6ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.8ms) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.6ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m [1m[35mPagesCms::Slider Load (0.4ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "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[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one 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) [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.1ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.1ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (73.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (40.9ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (1.0ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:16:03', '2015-06-22 22:16:03', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:16:03', '2015-06-22 22:16:03', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (1.0ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (11.9ms)[0m COMMIT [1m[36m (22.1ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (1.1ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Contact Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.8ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m 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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[35mPagesCms::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/articles Completed 302 Found in 11ms (ActiveRecord: 2.3ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Article Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.7ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.9ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-22 22:16:07.189606"], ["updated_at", "2015-06-22 22:16:07.189606"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 4], ["created_at", "2015-06-22 22:16:07.195077"], ["updated_at", "2015-06-22 22:16:07.195077"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.7ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.6ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1[0m [["account_id", 1]] [1m[35mPagesCms::PageBlock Load (0.4ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.3ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::MarkdownText Load (0.3ms)[0m SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.3ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ContactField Load (0.4ms)[0m SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.3ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.3ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.6ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) [1m[36mPagesCms::Slider Load (0.4ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "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[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.1ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (52.7ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (18.9ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (1.1ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:24:18', '2015-06-22 22:24:18', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-22 22:24:18', '2015-06-22 22:24:18', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (1.2ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.4ms)[0m COMMIT [1m[36m (4.2ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (1.6ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Contact Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/articles/show.html.haml within layouts/pages_cms/application (3.4ms) [1m[35mPagesCms::Account Load (0.5ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/articles Completed 302 Found in 10ms (ActiveRecord: 2.1ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Article Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-22 22:24:21.377684"], ["updated_at", "2015-06-22 22:24:21.377684"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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"} [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.1ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.6ms)[0m 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"}}}}}} [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.8ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 180ms (ActiveRecord: 7.6ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.4ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.4ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::MarkdownText Load (0.4ms)[0m [1mSELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.3ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ContactField Load (0.3ms)[0m [1mSELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.3ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.3ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.9ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.9ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m [1m[35mPagesCms::Slider Load (0.4ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.1ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "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[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one 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) [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#MyText
', 'MyString', NULL, '2015-06-24 02:07:55', '2015-06-24 02:07:55', 298486374) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 02:07:55', '2015-06-24 02:07:55', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 02:07:55', '2015-06-24 02:07:55', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.6ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.6ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (50.8ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.8ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (23.2ms)[0m COMMIT [1m[36m (30.5ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (1.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.1ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-24 02:08:00.675229"], ["updated_at", "2015-06-24 02:08:00.675229"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-24 02:08:00.679858"], ["updated_at", "2015-06-24 02:08:00.679858"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.7ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.3ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1[0m [["account_id", 1]] [1m[35mPagesCms::PageBlock Load (0.4ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.3ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::MarkdownText Load (0.4ms)[0m SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.3ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ContactField Load (0.3ms)[0m SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.3ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.3ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.8ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) [1m[36mPagesCms::Slider Load (0.6ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m 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 [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "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[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Contact Load (0.5ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5[0m [1m[35mPagesCms::Article Load (0.5ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-24 02:08:01.574287"], ["updated_at", "2015-06-24 02:08:01.574287"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m 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) [1m[36mPagesCms::Contact Load (0.3ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 9ms (ActiveRecord: 1.7ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m 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) [1m[36mPagesCms::Article Load (0.3ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.3ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36m (306.6ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m [1m[35m (1267.3ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode' [1m[36mSQL (55.6ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m [1m[35m (16.5ms)[0m 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) [1m[36m (80.9ms)[0m [1mCREATE 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) [0m [1m[35m (92.9ms)[0m CREATE INDEX "index_pages_cms_articles_on_account_id" ON "pages_cms_articles" USING btree ("account_id") [1m[36m (29.2ms)[0m [1mCREATE INDEX "index_pages_cms_articles_on_image_id" ON "pages_cms_articles" USING btree ("image_id")[0m [1m[35m (25.6ms)[0m 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) [1m[36m (31.6ms)[0m [1mCREATE INDEX "index_pages_cms_blog_feeds_on_page_block_id" ON "pages_cms_blog_feeds" USING btree ("page_block_id")[0m [1m[35m (398.1ms)[0m 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) [1m[36m (81.9ms)[0m [1mCREATE INDEX "index_pages_cms_contact_fields_on_page_block_id" ON "pages_cms_contact_fields" USING btree ("page_block_id")[0m [1m[35m (16.4ms)[0m 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) [1m[36m (3.5ms)[0m [1mCREATE INDEX "index_pages_cms_contacts_on_account_id" ON "pages_cms_contacts" USING btree ("account_id")[0m [1m[35m (15.6ms)[0m 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) [1m[36m (3.4ms)[0m [1mCREATE INDEX "index_pages_cms_documents_on_account_id" ON "pages_cms_documents" USING btree ("account_id")[0m [1m[35m (217.6ms)[0m 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) [1m[36m (4.3ms)[0m [1mCREATE INDEX "index_pages_cms_image_boxes_on_image_id" ON "pages_cms_image_boxes" USING btree ("image_id")[0m [1m[35m (4.0ms)[0m CREATE INDEX "index_pages_cms_image_boxes_on_page_block_id" ON "pages_cms_image_boxes" USING btree ("page_block_id") [1m[36m (59.5ms)[0m [1mCREATE 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) [0m [1m[35m (130.9ms)[0m CREATE INDEX "index_pages_cms_images_on_account_id" ON "pages_cms_images" USING btree ("account_id") [1m[36m (10.5ms)[0m [1mCREATE 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) [0m [1m[35m (6.0ms)[0m CREATE INDEX "index_pages_cms_markdown_texts_on_page_block_id" ON "pages_cms_markdown_texts" USING btree ("page_block_id") [1m[36m (8.4ms)[0m [1mCREATE 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) [0m [1m[35m (2.5ms)[0m CREATE INDEX "index_pages_cms_page_blocks_on_page_id" ON "pages_cms_page_blocks" USING btree ("page_id") [1m[36m (6.2ms)[0m [1mCREATE 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) [0m [1m[35m (2.3ms)[0m CREATE INDEX "index_pages_cms_pages_on_account_id" ON "pages_cms_pages" USING btree ("account_id") [1m[36m (4.9ms)[0m [1mCREATE INDEX "index_pages_cms_pages_on_parent_id" ON "pages_cms_pages" USING btree ("parent_id")[0m [1m[35m (8.6ms)[0m 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) [1m[36m (2.5ms)[0m [1mCREATE INDEX "index_pages_cms_sidebars_on_page_id" ON "pages_cms_sidebars" USING btree ("page_id")[0m [1m[35m (6.9ms)[0m 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) [1m[36m (2.1ms)[0m [1mCREATE INDEX "index_pages_cms_sliders_on_image_id" ON "pages_cms_sliders" USING btree ("image_id")[0m [1m[35m (2.5ms)[0m CREATE INDEX "index_pages_cms_sliders_on_page_id" ON "pages_cms_sliders" USING btree ("page_id") [1m[36m (6.8ms)[0m [1mCREATE 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) [0m [1m[35m (3.2ms)[0m CREATE INDEX "index_pages_cms_text_boxes_on_page_block_id" ON "pages_cms_text_boxes" USING btree ("page_block_id") [1m[36m (8.8ms)[0m [1mCREATE 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) [0m [1m[35m (3.8ms)[0m CREATE INDEX "index_pages_cms_thumbnails_on_image_id" ON "pages_cms_thumbnails" USING btree ("image_id") [1m[36m (2.6ms)[0m [1mCREATE INDEX "index_pages_cms_thumbnails_on_page_block_id" ON "pages_cms_thumbnails" USING btree ("page_block_id")[0m [1m[35m (35.3ms)[0m ALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_c32930e22e" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id") [1m[36m (3.0ms)[0m [1mALTER TABLE "pages_cms_articles" ADD CONSTRAINT "fk_rails_9dc2606ec7" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (3.1ms)[0m ALTER TABLE "pages_cms_blog_feeds" ADD CONSTRAINT "fk_rails_72bd24f32e" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [1m[36m (2.9ms)[0m [1mALTER TABLE "pages_cms_contact_fields" ADD CONSTRAINT "fk_rails_04b58dd02a" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (2.6ms)[0m ALTER TABLE "pages_cms_contacts" ADD CONSTRAINT "fk_rails_366edea1e0" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id") [1m[36m (2.7ms)[0m [1mALTER TABLE "pages_cms_documents" ADD CONSTRAINT "fk_rails_0e194bf8eb" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id") [0m [1m[35m (2.8ms)[0m ALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_4bcc9f7e58" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (2.6ms)[0m [1mALTER TABLE "pages_cms_image_boxes" ADD CONSTRAINT "fk_rails_c891655099" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (2.6ms)[0m ALTER TABLE "pages_cms_images" ADD CONSTRAINT "fk_rails_226ed17ac0" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id") [1m[36m (3.0ms)[0m [1mALTER TABLE "pages_cms_markdown_texts" ADD CONSTRAINT "fk_rails_73f6281917" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (3.7ms)[0m ALTER TABLE "pages_cms_page_blocks" ADD CONSTRAINT "fk_rails_2f78dfe9ef" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (2.9ms)[0m [1mALTER TABLE "pages_cms_pages" ADD CONSTRAINT "fk_rails_57ae2bd40e" FOREIGN KEY ("account_id") REFERENCES "pages_cms_accounts" ("id") [0m [1m[35m (9.4ms)[0m ALTER TABLE "pages_cms_sidebars" ADD CONSTRAINT "fk_rails_72f631044d" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (3.5ms)[0m [1mALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_70c9aecbd2" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [0m [1m[35m (2.9ms)[0m ALTER TABLE "pages_cms_sliders" ADD CONSTRAINT "fk_rails_86162b0c7f" FOREIGN KEY ("page_id") REFERENCES "pages_cms_pages" ("id") [1m[36m (2.7ms)[0m [1mALTER TABLE "pages_cms_text_boxes" ADD CONSTRAINT "fk_rails_89e03effd1" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (3.0ms)[0m ALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_94d9a79bcc" FOREIGN KEY ("image_id") REFERENCES "pages_cms_images" ("id") [1m[36m (2.8ms)[0m [1mALTER TABLE "pages_cms_thumbnails" ADD CONSTRAINT "fk_rails_3968b879ef" FOREIGN KEY ("page_block_id") REFERENCES "pages_cms_page_blocks" ("id") [0m [1m[35m (3.7ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [1m[36m (3.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35m (0.7ms)[0m SELECT version FROM "schema_migrations" [1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150609171657')[0m [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (47.2ms)[0m 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 [1m[36m (5.2ms)[0m [1mALTER 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[0m [1m[35m (4.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (17.2ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (12.6ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:18:29', '2015-06-24 15:18:29', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_documents"[0m [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "pages_cms_documents" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:18:29', '2015-06-24 15:18:29', 980190962) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "pages_cms_documents" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:18:29', '2015-06-24 15:18:29', 298486374)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_markdown_texts"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:18:29', '2015-06-24 15:18:29', 298486374)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.6ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sliders"[0m [1m[35mFixture Insert (0.9ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_text_boxes" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36m (1.1ms)[0m [1mCOMMIT[0m [1m[35m (9.3ms)[0m 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 [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (12.0ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36mPagesCms::Contact Load (0.4ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[35m (13.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (18.5ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-24 15:18:33.399996"], ["updated_at", "2015-06-24 15:18:33.399996"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.8ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 87ms (ActiveRecord: 7.0ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "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[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Contact Load (0.5ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5[0m [1m[35mPagesCms::Article Load (0.5ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5 [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (181.0ms) [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.1ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (53.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (11.0ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (19.9ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:19:36', '2015-06-24 15:19:36', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (1.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_documents"[0m [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "pages_cms_documents" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:19:36', '2015-06-24 15:19:36', 980190962) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "pages_cms_documents" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:19:36', '2015-06-24 15:19:36', 298486374)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_markdown_texts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:19:36', '2015-06-24 15:19:36', 298486374)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (1.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sliders"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_text_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.1ms)[0m [1mCOMMIT[0m [1m[35m (3.4ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.4ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (3.8ms) [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.9ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-24 15:19:38.682954"], ["updated_at", "2015-06-24 15:19:38.682954"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 4], ["created_at", "2015-06-24 15:19:38.687905"], ["updated_at", "2015-06-24 15:19:38.687905"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.8ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.4ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1[0m [["account_id", 1]] [1m[35mPagesCms::PageBlock Load (0.4ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.3ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::MarkdownText Load (0.4ms)[0m SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.3ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ContactField Load (0.4ms)[0m SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.3ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.4ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (1.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (1.2ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.6ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) [1m[36mPagesCms::Slider Load (0.4ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (1.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (1.1ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.6ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.7ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.5ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "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[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Contact Load (1.0ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5[0m [1m[35mPagesCms::Article Load (0.8ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5 [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (47.0ms) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.8ms) [1m[35mPagesCms::Contact Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/articles Completed 302 Found in 10ms (ActiveRecord: 1.9ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.3ms) [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (1.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (4.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (31.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:20:34', '2015-06-24 15:20:34', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (1.7ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_documents"[0m [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "pages_cms_documents" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:20:34', '2015-06-24 15:20:34', 980190962) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "pages_cms_documents" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:20:34', '2015-06-24 15:20:34', 298486374)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_markdown_texts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 15:20:34', '2015-06-24 15:20:34', 298486374)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (1.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sliders"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_text_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.0ms)[0m [1mCOMMIT[0m [1m[35m (5.3ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.6ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (2.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (168.9ms)[0m 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 [1m[36m (18.9ms)[0m [1mALTER 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[0m [1m[35m (7.3ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (43.4ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (1.1ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.7ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.4ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:06:06', '2015-06-24 20:06:06', 980190962)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (1.0ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_documents"[0m [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "pages_cms_documents" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:06:06', '2015-06-24 20:06:06', 980190962) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "pages_cms_documents" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:06:06', '2015-06-24 20:06:06', 298486374)[0m [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Delete (1.5ms)[0m [1mDELETE FROM "pages_cms_markdown_texts"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:06:06', '2015-06-24 20:06:06', 298486374)[0m [1m[35mFixture Delete (28.4ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.6ms)[0m 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) [1m[36mFixture Delete (1.0ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.5ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (16.7ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (1.2ms)[0m [1mDELETE FROM "pages_cms_sliders"[0m [1m[35mFixture Insert (0.7ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_text_boxes" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.4ms)[0m [1mCOMMIT[0m [1m[35m (3.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (18.3ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (6.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (60.0ms)[0m 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 [1m[36m (4.2ms)[0m [1mALTER 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[0m [1m[35m (3.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (7.1ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (157.6ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:22:36', '2015-06-24 20:22:36', 980190962)[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_documents"[0m [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "pages_cms_documents" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:22:36', '2015-06-24 20:22:36', 980190962) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "pages_cms_documents" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:22:36', '2015-06-24 20:22:36', 298486374)[0m [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (5.9ms)[0m [1mDELETE FROM "pages_cms_markdown_texts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:22:36', '2015-06-24 20:22:36', 298486374)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (1.0ms)[0m [1mDELETE FROM "pages_cms_sliders"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_text_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36m (1.3ms)[0m [1mCOMMIT[0m [1m[35m (4.9ms)[0m 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 [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ [1m[35m (0.2ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (3.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (5.7ms)[0m 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 [1m[36m (16.0ms)[0m [1mALTER 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[0m [1m[35m (4.7ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (20.1ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:23:52', '2015-06-24 20:23:52', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (1.6ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_documents"[0m [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "pages_cms_documents" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:23:52', '2015-06-24 20:23:52', 980190962) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "pages_cms_documents" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:23:52', '2015-06-24 20:23:52', 298486374)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_image_boxes" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_images"[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_markdown_texts"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 20:23:52', '2015-06-24 20:23:52', 298486374)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_page_blocks" [1m[36mFixture Insert (1.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_pages"[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sidebars" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sliders"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_text_boxes" [1m[36mFixture Insert (1.7ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.6ms)[0m 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) [1m[36m (1.1ms)[0m [1mCOMMIT[0m [1m[35m (3.4ms)[0m 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 [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ [1m[35m (0.2ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (17.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (101.5ms)[0m 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 [1m[36m (0.4ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (6.9ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (1.0ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.2ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 21:07:05', '2015-06-24 21:07:05', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (1.0ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (1.2ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 21:07:05', '2015-06-24 21:07:05', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.2ms)[0m COMMIT [1m[36m (3.1ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (1.1ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (28.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (106.2ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (16.9ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (1.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (1.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (1.2ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 21:45:27', '2015-06-24 21:45:27', 980190962)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (1.0ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (1.1ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (1.8ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 21:45:27', '2015-06-24 21:45:27', 980190962)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (1.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.6ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (1.3ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.6ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (10.8ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (1.6ms)[0m 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) [1m[36mFixture Delete (1.4ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.2ms)[0m COMMIT [1m[36m (5.2ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (1.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (16.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (16.2ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/articles Completed 302 Found in 156ms (ActiveRecord: 33.7ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.4ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Account Exists (1.1ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (3.8ms) [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (1.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.9ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.7ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (1.0ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.9ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] [1m[36mPagesCms::PageBlock Load (0.6ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.4ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::MarkdownText Load (0.8ms)[0m [1mSELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.4ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ContactField Load (1.0ms)[0m [1mSELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.4ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (1.4ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.9ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.6ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.9ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (9.7ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.6ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m [1m[35mPagesCms::Slider Load (0.4ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Page Load (1.0ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m 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"}}}}}} [1m[35mPagesCms::Account Exists (1.1ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.8ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.6ms)[0m 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"]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-24 21:45:30.994448"], ["updated_at", "2015-06-24 21:45:30.994448"]] [1m[35mSQL (0.8ms)[0m 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"]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-24 21:45:31.001136"], ["updated_at", "2015-06-24 21:45:31.001136"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (1.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.6ms)[0m 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) [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (1.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.9ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (4.2ms) [1m[35mPagesCms::Page Load (1.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (13.0ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m 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]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Contact Load (0.6ms)[0m SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5 [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5[0m [1m[35mPagesCms::Account Load (1.2ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#MyText
', 'MyString', NULL, '2015-06-24 21:56:29', '2015-06-24 21:56:29', 298486374) [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 21:56:29', '2015-06-24 21:56:29', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (1.0ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (1.7ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.1ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 21:56:29', '2015-06-24 21:56:29', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (1.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (1.1ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35m (1.3ms)[0m COMMIT [1m[36m (3.6ms)[0m [1mALTER 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[0m [1m[35m (0.4ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (16.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-24 21:56:50', '2015-06-24 21:56:50', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-24 21:56:50', '2015-06-24 21:56:50', 980190962)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.1ms)[0m COMMIT [1m[36m (3.2ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (28.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (227.7ms)[0m 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 [1m[36m (12.8ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (25.3ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (145.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (19.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (23.1ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:41:21', '2015-06-25 05:41:21', 980190962)[0m [1m[35mFixture Insert (0.9ms)[0m 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) [1m[36mFixture Delete (1.2ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (1.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.7ms)[0m 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) [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (4.0ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:41:21', '2015-06-25 05:41:21', 980190962)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (1.2ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.3ms)[0m COMMIT [1m[36m (3.5ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (13.2ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.6ms)[0m ROLLBACK [1m[36m (4.5ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[36m (3.6ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.4ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------- PagesCms::ImageTest: test_invalid_image --------------------------------------- [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.8ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.5ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.4ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::MarkdownText Load (0.3ms)[0m [1mSELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.3ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ContactField Load (0.3ms)[0m [1mSELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.4ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (1.0ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (1.8ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.6ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.4ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.6ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m [1m[35mPagesCms::Slider Load (0.4ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (4.8ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (1.8ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.8ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.8ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "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[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Contact Load (1.1ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5[0m [1m[35mPagesCms::Article Load (1.1ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5 [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (604.0ms) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.5ms)[0m 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"}}}}}} [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (275.3ms)[0m 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"]] [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.1ms)[0m 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"]] [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.0ms)[0m 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"]] [1m[36m (2.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (40.7ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 466ms (ActiveRecord: 326.7ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.5ms)[0m 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"} [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ImagesControllerTest: test_should_get_index ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (2.1ms) [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.9ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.6ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.9ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#MyText
', 'MyString', NULL, '2015-06-25 05:43:24', '2015-06-25 05:43:24', 298486374) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:43:24', '2015-06-25 05:43:24', 980190962)[0m [1m[35mFixture Insert (0.9ms)[0m 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) [1m[36mFixture Delete (3.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.8ms)[0m 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) [1m[36mFixture Delete (1.5ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.7ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:43:24', '2015-06-25 05:43:24', 980190962)[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (137.3ms)[0m COMMIT [1m[36m (6.0ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (4.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (20.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:44:13', '2015-06-25 05:44:13', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (1.5ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:44:13', '2015-06-25 05:44:13', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (1.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.4ms)[0m COMMIT [1m[36m (6.8ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (4.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:44:34', '2015-06-25 05:44:34', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:44:34', '2015-06-25 05:44:34', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.0ms)[0m COMMIT [1m[36m (3.5ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (1.1ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (92.4ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (39.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:45:48', '2015-06-25 05:45:48', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (11.8ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:45:48', '2015-06-25 05:45:48', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.8ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.2ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (1.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.4ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (11.4ms)[0m COMMIT [1m[36m (4.0ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (1.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (83.0ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (20.0ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:55:52', '2015-06-25 05:55:52', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (1.4ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 05:55:52', '2015-06-25 05:55:52', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (1.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (1.0ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.3ms)[0m COMMIT [1m[36m (3.5ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (1.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (1.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (135.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (20.1ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:00:25', '2015-06-25 06:00:25', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (1.4ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:00:25', '2015-06-25 06:00:25', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (1.5ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (1.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.5ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (35.6ms)[0m COMMIT [1m[36m (3.5ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (1.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (4.7ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (20.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:01:45', '2015-06-25 06:01:45', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (1.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:01:45', '2015-06-25 06:01:45', 980190962)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (1.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.3ms)[0m COMMIT [1m[36m (3.4ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (1.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '$% wierd' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::AccountTest: test_another_invalid_mount_location ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '-less-weird@' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (62.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (31.0ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:04:16', '2015-06-25 06:04:16', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.9ms)[0m 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) [1m[36mFixture Delete (1.1ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (11.5ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:04:16', '2015-06-25 06:04:16', 980190962)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.9ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.9ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.5ms)[0m COMMIT [1m[36m (3.8ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ---------------------------------------------------------- PagesCms::AccountTest: test_another_invalid_mount_location ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (1.6ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '-less-weird@' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '$% wierd' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (62.2ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (42.1ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:05:12', '2015-06-25 06:05:12', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.8ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:05:12', '2015-06-25 06:05:12', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.8ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (1.0ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.0ms)[0m COMMIT [1m[36m (3.5ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (3.3ms) [1m[35mPagesCms::Page Load (1.1ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (16.1ms)[0m 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]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Contact Load (0.5ms)[0m SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5 [1m[36mPagesCms::Article Load (0.9ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5[0m [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.6ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (1.1ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1[0m [["account_id", 1]] [1m[35mPagesCms::PageBlock Load (0.5ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.4ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::MarkdownText Load (0.5ms)[0m SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.4ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ContactField Load (0.4ms)[0m SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.5ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (1.1ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.6ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) [1m[36mPagesCms::Slider Load (0.5ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.4ms)[0m 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"}}}}}} [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (1.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["mount_location", "/"]] Redirected to http://test.host/admin/pages/3/edit Completed 302 Found in 318ms (ActiveRecord: 7.8ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.5ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::AccountTest: test_another_invalid_mount_location ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '-less-weird@' AND "pages_cms_accounts"."id" != 1) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '$% wierd' AND "pages_cms_accounts"."id" != 1) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "pages_cms_pages" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "really cool"], ["slug", "really-cool"], ["created_at", "2015-06-25 06:05:15.708708"], ["updated_at", "2015-06-25 06:05:15.708708"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/articles Completed 302 Found in 11ms (ActiveRecord: 2.0ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (2.0ms) [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#MyText
', 'MyString', NULL, '2015-06-25 06:12:48', '2015-06-25 06:12:48', 298486374) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:12:48', '2015-06-25 06:12:48', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (1.7ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (1.9ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:12:48', '2015-06-25 06:12:48', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (1.6ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (3.4ms)[0m COMMIT [1m[36m (3.4ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (1.1ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '$% wierd' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (51.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (20.9ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (18.9ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:13:59', '2015-06-25 06:13:59', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (15.0ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:13:59', '2015-06-25 06:13:59', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.8ms)[0m COMMIT [1m[36m (3.2ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::AccountTest: test_another_invalid_mount_location ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (1.9ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '-less-weird@' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '$% wierd' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (212.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (19.9ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:16:36', '2015-06-25 06:16:36', 980190962)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (1.6ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:16:36', '2015-06-25 06:16:36', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (1.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (1.1ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35m (1.3ms)[0m COMMIT [1m[36m (3.4ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------- PagesCms::ContactTest: test_invalid_contact ------------------------------------------- [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------- PagesCms::ContactTest: test_valid_contact ----------------------------------------- [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mPagesCms::Account Load (5.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.5ms)[0m 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", "/"]] [1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (86.5ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (60.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (152.3ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:27:16', '2015-06-25 06:27:16', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (1.2ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (26.3ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:27:16', '2015-06-25 06:27:16', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.8ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (2.0ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35m (1.8ms)[0m COMMIT [1m[36m (3.5ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------- PagesCms::ContactTest: test_invalid_contact ------------------------------------------- [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ContactTest: test_valid_contact ----------------------------------------- [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.8ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.7ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '$% wierd' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::AccountTest: test_another_invalid_mount_location ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.8ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '-less-weird@' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.8ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1[0m [["account_id", 1]] [1m[35mPagesCms::PageBlock Load (0.4ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.6ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::MarkdownText Load (0.6ms)[0m SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.5ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ContactField Load (0.5ms)[0m SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.4ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (1.3ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.7ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) [1m[36mPagesCms::Slider Load (0.5ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.8ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.5ms)[0m 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"}}}}}} [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m 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"]] [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.0ms)[0m 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"]] [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.9ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 81ms (ActiveRecord: 9.0ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.3ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m 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]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Contact Load (0.6ms)[0m SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5 [1m[36mPagesCms::Article Load (0.6ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5[0m [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.4ms) [1m[35mPagesCms::Contact Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[36mPagesCms::Account Load (2.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.7ms)[0m 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", "/"]] [1m[36mActiveRecord::SchemaMigration Load (13.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (86.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (12.1ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (19.7ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:36:15', '2015-06-25 06:36:15', 980190962)[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (13.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 06:36:15', '2015-06-25 06:36:15', 980190962)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (19.9ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.6ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (19.7ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.8ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.6ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35m (1.3ms)[0m COMMIT [1m[36m (5.1ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.3ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ContactTest: test_valid_contact ----------------------------------------- [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ContactTest: test_invalid_contact ------------------------------------------- [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m 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"}}}}}} [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.0ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-25 06:36:17.918228"], ["updated_at", "2015-06-25 06:36:17.918228"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-25 06:36:17.923901"], ["updated_at", "2015-06-25 06:36:17.923901"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.7ms)[0m 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) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (2.0ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.6ms)[0m 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]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Contact Load (0.5ms)[0m SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5 [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5[0m [1m[35mPagesCms::Account Load (0.5ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.5ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1[0m [["account_id", 1]] [1m[35mPagesCms::PageBlock Load (0.4ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.4ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::MarkdownText Load (0.4ms)[0m SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.3ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ContactField Load (0.4ms)[0m SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.4ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.3ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.7ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) [1m[36mPagesCms::Slider Load (0.5ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (2.1ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.7ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mPagesCms::Account Load (7.0ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.5ms)[0m 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", "/"]] [1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (76.8ms)[0m 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 [1m[36m (0.4ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (18.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.8ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 15:55:30', '2015-06-25 15:55:30', 980190962)[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (1.4ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (14.8ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 15:55:30', '2015-06-25 15:55:30', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.4ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35m (1.2ms)[0m COMMIT [1m[36m (3.2ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.8ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 16ms (ActiveRecord: 1.7ms) [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m 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) [1m[36mPagesCms::Article Load (0.6ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.9ms)[0m 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"}}}}}} [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["mount_location", "/"]] Redirected to http://test.host/admin/pages/4/edit Completed 302 Found in 135ms (ActiveRecord: 7.8ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "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[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Contact Load (0.6ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5[0m [1m[35mPagesCms::Article Load (0.5ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5 [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (112.6ms) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.5ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.4ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::MarkdownText Load (0.5ms)[0m [1mSELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.4ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ContactField Load (0.5ms)[0m [1mSELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.5ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.3ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.6ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (3.8ms) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.5ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m [1m[35mPagesCms::Slider Load (0.7ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '$% wierd' AND "pages_cms_accounts"."id" != 1) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::AccountTest: test_another_invalid_mount_location ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '-less-weird@' AND "pages_cms_accounts"."id" != 1) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ContactTest: test_invalid_contact ------------------------------------------- [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ContactTest: test_valid_contact ----------------------------------------- [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36mPagesCms::Contact Load (0.3ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.5ms)[0m 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"} [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.4ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mPagesCms::Account Load (39.0ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.7ms)[0m 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", "/"]] [1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (4.8ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (34.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (18.2ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 15:57:25', '2015-06-25 15:57:25', 980190962)[0m [1m[35mFixture Insert (0.6ms)[0m 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) [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (1.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 15:57:25', '2015-06-25 15:57:25', 980190962)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (1.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (57.7ms)[0m COMMIT [1m[36m (26.9ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[36mPagesCms::Account Load (1.8ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.7ms)[0m 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", "/"]] [1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (48.6ms)[0m 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 [1m[36m (0.4ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (21.7ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 15:58:16', '2015-06-25 15:58:16', 980190962)[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (13.4ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 15:58:16', '2015-06-25 15:58:16', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.4ms)[0m COMMIT [1m[36m (3.6ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1[0m [["account_id", 1], ["slug", "mystring"]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (11.4ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36mPagesCms::Account Load (1.9ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.6ms)[0m 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", "/"]] [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (5.1ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (23.8ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 15:58:52', '2015-06-25 15:58:52', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (23.7ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 15:58:52', '2015-06-25 15:58:52', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.0ms)[0m COMMIT [1m[36m (3.6ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m 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"]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1[0m [["account_id", 1], ["slug", "duplicate"]] [1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (1.4ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (1.6ms)[0m ROLLBACK [1m[36m (0.6ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.7ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m 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"]] [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[36mPagesCms::Account Load (2.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.4ms)[0m 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", "/"]] [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (48.2ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (23.7ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:00:21', '2015-06-25 16:00:21', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (18.3ms)[0m 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) [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:00:21', '2015-06-25 16:00:21', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.2ms)[0m COMMIT [1m[36m (4.4ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1[0m [["account_id", 1], ["slug", "duplicate"]] [1m[35mSQL (0.8ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mPagesCms::Account Load (1.8ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.7ms)[0m 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", "/"]] [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (5.6ms)[0m 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 [1m[36m (0.4ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (20.9ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:00:53', '2015-06-25 16:00:53', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (12.1ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:00:53', '2015-06-25 16:00:53', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.1ms)[0m COMMIT [1m[36m (3.4ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m 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"]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1[0m [["account_id", 1], ["slug", "duplicate"]] [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1[0m [["account_id", 1], ["slug", "mystring"]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1[0m [["account_id", 1], ["slug", "really-cool"]] [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36mPagesCms::Account Load (2.0ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.7ms)[0m 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", "/"]] [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (5.0ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (23.7ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:03:02', '2015-06-25 16:03:02', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (8.7ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:03:02', '2015-06-25 16:03:02', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (2.2ms)[0m COMMIT [1m[36m (5.7ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1[0m [["account_id", 1], ["slug", "duplicate"]] [1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1[0m [["account_id", 1], ["slug", "mystring"]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1[0m [["account_id", 1], ["slug", "really-cool"]] [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------------- PagesCms::PageTest: test_page_with_no_account --------------------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[36mPagesCms::Account Load (2.1ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.5ms)[0m 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", "/"]] [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (58.3ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (24.1ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:05:38', '2015-06-25 16:05:38', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (12.8ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:05:38', '2015-06-25 16:05:38', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.1ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35m (1.3ms)[0m COMMIT [1m[36m (4.6ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (1.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1[0m [["account_id", 1], ["slug", "mystring"]] [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------------- PagesCms::PageTest: test_page_with_no_account --------------------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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"]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1[0m [["account_id", 1], ["slug", "duplicate"]] [1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m 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"]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[36mPagesCms::Account Load (3.9ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.5ms)[0m 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", "/"]] [1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (15.4ms)[0m 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 [1m[36m (0.5ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:06:50', '2015-06-25 16:06:50', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:06:50', '2015-06-25 16:06:50', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.4ms)[0m COMMIT [1m[36m (3.3ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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"]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1[0m [["account_id", 1], ["slug", "duplicate"]] [1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1[0m [["account_id", 1], ["slug", "mystring"]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------------- PagesCms::PageTest: test_page_with_no_account --------------------------------------------- [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mPagesCms::Account Load (2.1ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.7ms)[0m 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", "/"]] [1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (5.2ms)[0m 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 [1m[36m (0.4ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:07:09', '2015-06-25 16:07:09', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:07:09', '2015-06-25 16:07:09', 980190962)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.7ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (2.1ms)[0m COMMIT [1m[36m (3.7ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------------- PagesCms::PageTest: test_page_with_no_account --------------------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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"]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 LIMIT 1[0m [["account_id", 1], ["slug", "duplicate"]] [1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[36mPagesCms::Account Load (2.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.5ms)[0m 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", "/"]] [1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (83.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (155.9ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:10:37', '2015-06-25 16:10:37', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (378.5ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:10:38', '2015-06-25 16:10:38', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (1.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.5ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35m (2.3ms)[0m COMMIT [1m[36m (4.7ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------- PagesCms::ContactTest: test_invalid_contact ------------------------------------------- [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ContactTest: test_valid_contact ----------------------------------------- [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35m (0.1ms)[0m ROLLBACK [1m[36mPagesCms::Account Load (2.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.7ms)[0m 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", "/"]] [1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (64.8ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (12.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:23:31', '2015-06-25 16:23:31', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (13.7ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.8ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:23:31', '2015-06-25 16:23:31', 980190962)[0m [1m[35mFixture Insert (2.4ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.4ms)[0m COMMIT [1m[36m (3.3ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (26.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2[0m [["account_id", 1], ["slug", "test-page"]] [1m[35mSQL (0.5ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') [1m[36mPagesCms::Account Load (0.8ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["mount_location", "/"]] Redirected to http://test.host/admin/pages/6/edit Completed 302 Found in 125ms (ActiveRecord: 7.2ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "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[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Contact Load (0.6ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5[0m [1m[35mPagesCms::Article Load (0.5ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5 [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (31.2ms) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m 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) [1m[36mPagesCms::Contact Load (0.3ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36mPagesCms::Account Load (2.0ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.5ms)[0m 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", "/"]] [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (33.0ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:27:16', '2015-06-25 16:27:16', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:27:17', '2015-06-25 16:27:17', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.3ms)[0m COMMIT [1m[36m (3.4ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.9ms)[0m 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"]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-25 16:27:18.699406"], ["updated_at", "2015-06-25 16:27:18.699406"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-25 16:27:18.705135"], ["updated_at", "2015-06-25 16:27:18.705135"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.7ms)[0m 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) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.7ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::PageBlock Load (0.4ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.4ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::MarkdownText Load (0.4ms)[0m SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.3ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ContactField Load (0.4ms)[0m SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.4ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.3ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.5ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) [1m[36mPagesCms::Slider Load (0.5ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.1ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.7ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "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[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Contact Load (0.6ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5[0m [1m[35mPagesCms::Article Load (0.6ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5 [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (38.9ms) [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 9ms (ActiveRecord: 1.8ms) [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m 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) [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.1ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m 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) [1m[36mPagesCms::Contact Load (0.3ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.3ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2[0m [["account_id", 1], ["slug", "duplicate"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2[0m [["account_id", 1], ["slug", "duplicate"]] [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2[0m [["account_id", 1], ["slug", "duplicate"]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "mystring"]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------------- PagesCms::PageTest: test_page_with_no_account --------------------------------------------- [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (1.2ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2[0m [["account_id", 1], ["slug", "really-cool"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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"} [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (1.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ContactTest: test_valid_contact ----------------------------------------- [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ContactTest: test_invalid_contact ------------------------------------------- [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '$% wierd' AND "pages_cms_accounts"."id" != 1) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::AccountTest: test_another_invalid_mount_location ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '-less-weird@' AND "pages_cms_accounts"."id" != 1) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36mPagesCms::Account Load (1.8ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.5ms)[0m 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", "/"]] [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (33.9ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (12.8ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:29:33', '2015-06-25 16:29:33', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (23.7ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (1.7ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:29:33', '2015-06-25 16:29:33', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.1ms)[0m COMMIT [1m[36m (4.9ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "different"]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN --------------------------------------------- PagesCms::PageTest: test_page_with_no_account --------------------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2[0m [["account_id", 1], ["slug", "really-cool"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.9ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "duplicate"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "duplicate"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_pages" ("account_id", "title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "duplicate"]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m 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"]] [1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.9ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-25 16:29:36.313386"], ["updated_at", "2015-06-25 16:29:36.313386"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 5], ["created_at", "2015-06-25 16:29:36.318544"], ["updated_at", "2015-06-25 16:29:36.318544"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.7ms)[0m 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) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.5ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::PageBlock Load (0.4ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.4ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::MarkdownText Load (0.5ms)[0m SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.3ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ContactField Load (0.3ms)[0m SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (1.0ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.3ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.6ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.6ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) [1m[36mPagesCms::Slider Load (1.0ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::AccountTest: test_another_invalid_mount_location ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.7ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '-less-weird@' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '$% wierd' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (2.5ms)[0m [1mROLLBACK[0m [1m[35m (0.3ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.6ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 9ms (ActiveRecord: 1.9ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m 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) [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.6ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ContactsController#index as HTML [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.1ms) [1m[35mPagesCms::Contact Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.3ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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"} [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.8ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ContactTest: test_invalid_contact ------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ContactTest: test_valid_contact ----------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36mPagesCms::Account Load (1.9ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.5ms)[0m 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", "/"]] [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (65.2ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (12.8ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:30:51', '2015-06-25 16:30:51', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (5.1ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (1.2ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:30:51', '2015-06-25 16:30:51', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.1ms)[0m COMMIT [1m[36m (3.3ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m 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) [1m[36mPagesCms::Contact Load (0.4ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.9ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.6ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.7ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '$% wierd' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::AccountTest: test_another_invalid_mount_location ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '-less-weird@' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ContactTest: test_invalid_contact ------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ContactTest: test_valid_contact ----------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (1.6ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[36mPagesCms::Account Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 10ms (ActiveRecord: 2.2ms) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m 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) [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (1.1ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.6ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.9ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m 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"}}}}}} [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2[0m [["account_id", 1], ["slug", "test-page"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_page_blocks" ("name", "div_id", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "pages_cms_thumbnails" ("image_id", "link", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "pages_cms_image_boxes" ("heading", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/') [1m[36mPagesCms::Account Load (0.7ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."mount_location" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["mount_location", "/"]] Redirected to http://test.host/admin/pages/5/edit Completed 302 Found in 203ms (ActiveRecord: 8.5ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_thumbnails" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.5ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::PageBlock Load (0.3ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.4ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::MarkdownText Load (0.6ms)[0m SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.3ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ContactField Load (0.3ms)[0m SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.4ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.3ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.5ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) [1m[36mPagesCms::Slider Load (0.5ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (1.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.7ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.4ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m 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) [1m[36mPagesCms::Page Load (0.8ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "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[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Contact Load (0.4ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5[0m [1m[35mPagesCms::Article Load (0.5ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5 [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (32.1ms) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[35mPagesCms::Account Load (1.1ms)[0m 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"} [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36mPagesCms::Account Load (1.9ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.5ms)[0m 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", "/"]] [1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (55.2ms)[0m 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 [1m[36m (0.3ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (22.9ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:32:44', '2015-06-25 16:32:44', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (15.1ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:32:44', '2015-06-25 16:32:44', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.9ms)[0m COMMIT [1m[36m (3.2ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::AccountTest: test_another_invalid_mount_location ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.7ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '-less-weird@' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '$% wierd' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[36mPagesCms::Article Load (0.5ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::ArticlesController#show as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (4.3ms) [1m[35mPagesCms::Article Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.1ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 9ms (ActiveRecord: 2.1ms) [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.4ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2[0m [["account_id", 1], ["slug", "duplicate"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2[0m [["account_id", 1], ["slug", "duplicate"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2[0m [["account_id", 1], ["slug", "duplicate"]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2 [["account_id", 1], ["slug", "different"]] [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------------- PagesCms::PageTest: test_page_with_no_account --------------------------------------------- [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2[0m [["account_id", 1], ["slug", "really-cool"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.1ms)[0m 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) [1m[36mPagesCms::Contact Load (0.6ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (1.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "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[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Contact Load (0.4ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5[0m [1m[35mPagesCms::Article Load (0.5ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5 [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (91.1ms) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.6ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::PageBlock Load (0.3ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.4ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::MarkdownText Load (0.4ms)[0m [1mSELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.4ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ContactField Load (0.3ms)[0m [1mSELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.5ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.6ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.1ms) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.5ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m [1m[35mPagesCms::Slider Load (0.5ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (0.3ms)[0m 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"}}}}}} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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"]] [1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (22.5ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-25 16:32:47.199257"], ["updated_at", "2015-06-25 16:32:47.199257"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 5], ["created_at", "2015-06-25 16:32:47.204918"], ["updated_at", "2015-06-25 16:32:47.204918"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.6ms)[0m 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) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#MyText
', 'MyString', NULL, '2015-06-25 16:33:29', '2015-06-25 16:33:29', 298486374) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:33:29', '2015-06-25 16:33:29', 980190962)[0m [1m[35mFixture Insert (0.6ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (7.8ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 16:33:29', '2015-06-25 16:33:29', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.2ms)[0m 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') [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.1ms)[0m COMMIT [1m[36m (4.8ms)[0m [1mALTER 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[0m [1m[35m (0.2ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[36mPagesCms::PageBlock Load (0.5ms)[0m [1mSELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1[0m [["id", 980190962]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("content_rendered", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN --------------------------------------------- PagesCms::PageTest: test_different_slug_names --------------------------------------------- [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.6ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.3ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2[0m [["account_id", 1], ["slug", "duplicate"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2[0m [["account_id", 1], ["slug", "duplicate"]] [1m[35mSQL (0.8ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2[0m [["account_id", 1], ["slug", "duplicate"]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------ PagesCms::PageTest: test_slug_gets_parameterized ------------------------------------------------ [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (1.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2[0m [["account_id", 1], ["slug", "really-cool"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------ PagesCms::PageTest: test_update_page ------------------------------------ [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2[0m [["account_id", 1], ["slug", "different"]] [1m[35mSQL (0.6ms)[0m 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]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m --------------------------------------------- PagesCms::PageTest: test_page_with_no_account --------------------------------------------- [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------- PagesCms::PageTest: test_valid_page ----------------------------------- [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."slug" = $2[0m [["account_id", 1], ["slug", "different"]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_images"[0m Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#a paragraph
"}}, "image_boxes_attributes"=>{0=>{"heading"=>"a paragraph
"}}, "thumbnails_attributes"=>{0=>{"image_id"=>"1", "link"=>"/thing"}}}}}} [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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"]] [1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (45.6ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-25 16:33:31.070901"], ["updated_at", "2015-06-25 16:33:31.070901"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 5], ["created_at", "2015-06-25 16:33:31.078316"], ["updated_at", "2015-06-25 16:33:31.078316"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.6ms)[0m 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) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m 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"} [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.3ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Sidebar Load (0.6ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1[0m [["page_id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.6ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::PageBlock Load (0.5ms)[0m 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]] [1m[36mPagesCms::TextBox Load (0.4ms)[0m [1mSELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::MarkdownText Load (0.4ms)[0m SELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::BlogFeed Load (0.3ms)[0m [1mSELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ContactField Load (0.5ms)[0m SELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ImageBox Load (0.5ms)[0m [1mSELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Thumbnail Load (0.4ms)[0m SELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.5ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.6ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Image Load (0.8ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.7ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Sidebar Load (0.5ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2) [1m[36mPagesCms::Slider Load (0.5ms)[0m [1mSELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1[0m [["page_id", 1]] [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.7ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m 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 [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m 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) [1m[36mPagesCms::Page Load (0.6ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "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[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Contact Load (0.6ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5[0m [1m[35mPagesCms::Article Load (0.8ms)[0m SELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5 [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/index.html.haml within layouts/pages_cms/application (49.5ms) [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------- PagesCms::ArticlesControllerTest: test_get_individual_article ------------------------------------------------------------- [1m[35mPagesCms::Article Load (0.4ms)[0m 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"} [1m[36mPagesCms::Article Load (0.4ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" WHERE "pages_cms_articles"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------ PagesCmsTest: test_truth ------------------------ [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::AccountTest: test_another_invalid_mount_location ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '-less-weird@' AND "pages_cms_accounts"."id" != 1) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.2ms)[0m [1mBEGIN[0m -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '$% wierd' AND "pages_cms_accounts"."id" != 1) LIMIT 1[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[35mPagesCms::Image Load (0.3ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m 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"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Redirected to http://test.host/admin/articles Completed 302 Found in 12ms (ActiveRecord: 2.3ms) [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Account Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.1ms) [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2)[0m [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Page Load (0.2ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ContactTest: test_invalid_contact ------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::ContactTest: test_valid_contact ----------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------- PagesCms::ArticleTest: test_invalid_article ------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ------------------------------------------ PagesCms::ArticleTest: test_content_and_md ------------------------------------------ [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ArticleTest: test_valid_article ----------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (4.2ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m 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 [1m[36mPagesCms::Account Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m 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) [1m[36mPagesCms::Contact Load (0.3ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 AND "pages_cms_pages"."navbar_show" = 't' ORDER BY "pages_cms_pages"."order" ASC[0m [["account_id", 1]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1, 2) [1m[36mPagesCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 2]] [1m[36mPagesCms::Page Load (0.2ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36mPagesCms::Account Load (8.6ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.5ms)[0m 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", "/"]] [1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (98.6ms)[0m 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 [1m[36m (0.2ms)[0m [1mBEGIN[0m [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "pages_cms_accounts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (12.2ms)[0m DELETE FROM "pages_cms_articles" [1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_blog_feeds"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_contact_fields" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "pages_cms_contact_fields" ("created_at", "updated_at", "id") VALUES ('2015-06-25 18:02:09', '2015-06-25 18:02:09', 980190962)[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "pages_cms_contacts"[0m [1m[35mFixture Insert (0.3ms)[0m 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) [1m[36mFixture Delete (1.9ms)[0m [1mDELETE FROM "pages_cms_image_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "pages_cms_images" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m [1m[35mFixture Delete (4.5ms)[0m DELETE FROM "pages_cms_markdown_texts" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "pages_cms_markdown_texts" ("created_at", "updated_at", "id") VALUES ('2015-06-25 18:02:09', '2015-06-25 18:02:09', 980190962)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_page_blocks"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (1.4ms)[0m DELETE FROM "pages_cms_pages" [1m[36mFixture Insert (0.5ms)[0m [1mINSERT 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')[0m [1m[35mFixture Insert (0.3ms)[0m 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') [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_sidebars"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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)[0m [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "pages_cms_sliders" [1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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)[0m [1m[35mFixture Insert (0.2ms)[0m 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) [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "pages_cms_text_boxes"[0m [1m[35mFixture Insert (0.4ms)[0m 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) [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m [1m[35m (1.4ms)[0m COMMIT [1m[36m (3.4ms)[0m [1mALTER 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[0m [1m[35m (0.1ms)[0m BEGIN ------------------------ PagesCmsTest: test_truth ------------------------ [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------- PagesCms::AccountTest: test_invalid_mount_location -------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.7ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '$% wierd' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------- PagesCms::AccountTest: test_another_invalid_mount_location ---------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.5ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '-less-weird@' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::AccountTest: test_valid_account ----------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE ("pages_cms_accounts"."mount_location" = '/' AND "pages_cms_accounts"."id" != 1) LIMIT 1 [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------- PagesCms::Admin::AccountsControllerTest: test_should_get_edit ------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::AccountsController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.5ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.7ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------- PagesCms::MarkdownTextTest: test_markdown_is_rendered ----------------------------------------------------- [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.3ms)[0m [1mBEGIN[0m ------------------------------------------- PagesCms::ContactTest: test_invalid_contact ------------------------------------------- [1m[35mPagesCms::Account Load (0.5ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------- PagesCms::ContactTest: test_valid_contact ----------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_page_create_test ----------------------------------------------------------- [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_pages"[0m [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_blog_feeds" [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_image_boxes"[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "pages_cms_text_boxes" [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_sidebars"[0m [1m[35m (1.4ms)[0m 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"}}}}}} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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"]] [1m[36mSQL (0.7ms)[0m [1mINSERT 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"[0m [["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"]] [1m[35mSQL (0.6ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_text_boxes" ("content", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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"]] [1m[35mSQL (1.0ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_blog_feeds" ("limit", "page_block_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["limit", 10], ["page_block_id", 980190963], ["created_at", "2015-06-25 18:02:13.079504"], ["updated_at", "2015-06-25 18:02:13.079504"]] [1m[35mSQL (0.7ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "pages_cms_sidebars" ("content", "page_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["content", "something"], ["page_id", 3], ["created_at", "2015-06-25 18:02:13.084267"], ["updated_at", "2015-06-25 18:02:13.084267"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE (mount_location != '/')[0m [1m[35mPagesCms::Account Load (0.6ms)[0m 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) [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_thumbnails"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_sidebars" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_text_boxes"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_image_boxes" [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_blog_feeds"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "pages_cms_pages" [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_get_account_of_current_page ---------------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.3ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ---------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_edit ---------------------------------------------------------- [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#edit as HTML Parameters: {"id"=>"1"} [1m[35mPagesCms::Account Exists (0.4ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Sidebar Load (0.6ms)[0m SELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" = $1 LIMIT 1 [["page_id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."account_id" = $1 [["account_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Image Load (0.5ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::PageBlock Load (0.4ms)[0m [1mSELECT "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[0m [["page_id", 1]] [1m[35mPagesCms::TextBox Load (0.4ms)[0m SELECT "pages_cms_text_boxes".* FROM "pages_cms_text_boxes" WHERE "pages_cms_text_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::MarkdownText Load (0.4ms)[0m [1mSELECT "pages_cms_markdown_texts".* FROM "pages_cms_markdown_texts" WHERE "pages_cms_markdown_texts"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::BlogFeed Load (0.3ms)[0m SELECT "pages_cms_blog_feeds".* FROM "pages_cms_blog_feeds" WHERE "pages_cms_blog_feeds"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::ContactField Load (0.3ms)[0m [1mSELECT "pages_cms_contact_fields".* FROM "pages_cms_contact_fields" WHERE "pages_cms_contact_fields"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::ImageBox Load (0.4ms)[0m SELECT "pages_cms_image_boxes".* FROM "pages_cms_image_boxes" WHERE "pages_cms_image_boxes"."page_block_id" = $1 [["page_block_id", 980190962]] [1m[36mPagesCms::Thumbnail Load (0.3ms)[0m [1mSELECT "pages_cms_thumbnails".* FROM "pages_cms_thumbnails" WHERE "pages_cms_thumbnails"."page_block_id" = $1[0m [["page_block_id", 980190962]] [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.5ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Image Load (0.4ms)[0m SELECT "pages_cms_images".* FROM "pages_cms_images" [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m 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) [1m[35mPagesCms::Page Load (0.5ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Image Load (0.4ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images"[0m Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/pages/_editor.html.haml (4.5ms) [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" [1m[36mPagesCms::Sidebar Load (0.7ms)[0m [1mSELECT "pages_cms_sidebars".* FROM "pages_cms_sidebars" WHERE "pages_cms_sidebars"."page_id" IN (1, 2)[0m [1m[35mPagesCms::Slider Load (0.4ms)[0m SELECT "pages_cms_sliders".* FROM "pages_cms_sliders" WHERE "pages_cms_sliders"."page_id" = $1 [["page_id", 1]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages"[0m [1m[35mPagesCms::Image Load (0.3ms)[0m 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) [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.6ms)[0m 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) [1m[36m (0.3ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ----------------------------------------------------------- PagesCms::Admin::PagesControllerTest: test_should_get_index ----------------------------------------------------------- [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::PagesController#index as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (3.3ms) [1m[35mPagesCms::Page Load (0.6ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1 [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" ORDER BY "pages_cms_pages"."id" DESC LIMIT 1[0m [1m[35mPagesCms::Page Load (0.4ms)[0m 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]] [1m[36mPagesCms::Page Load (0.5ms)[0m [1mSELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" IN (1)[0m [1m[35mPagesCms::Page Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 1]] [1m[35mPagesCms::Page Exists (0.2ms)[0m SELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1 [["parent_id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m SELECT "pages_cms_pages".* FROM "pages_cms_pages" WHERE "pages_cms_pages"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_pages" WHERE "pages_cms_pages"."parent_id" = $1 LIMIT 1[0m [["parent_id", 2]] [1m[35mPagesCms::Contact Load (0.6ms)[0m SELECT "pages_cms_contacts".* FROM "pages_cms_contacts" ORDER BY "pages_cms_contacts"."id" DESC LIMIT 5 [1m[36mPagesCms::Article Load (0.7ms)[0m [1mSELECT "pages_cms_articles".* FROM "pages_cms_articles" ORDER BY "pages_cms_articles"."id" DESC LIMIT 5[0m [1m[35mPagesCms::Account Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------------- PagesCms::Admin::ArticlesControllerTest: test_should_get_index -------------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Processing by PagesCms::Admin::ArticlesController#index as HTML [1m[35mPagesCms::Account Exists (0.3ms)[0m SELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] Rendered /Users/ColinWalker/workspace/cms/PagesCMS/app/views/pages_cms/admin/shared/_tabs.html.haml (1.1ms) [1m[35mPagesCms::Article Load (0.4ms)[0m 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) [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Page Load (0.4ms)[0m 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) [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ------------------------------------------------------------ PagesCms::Admin::ArticlesControllerTest: test_article_create ------------------------------------------------------------ [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_articles" Processing by PagesCms::Admin::ArticlesController#create as HTML Parameters: {"article"=>{"title"=>"something", "content"=>"something", "tags"=>"something", "draft"=>true}} [1m[36mPagesCms::Account Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pages_cms_articles" ("title", "tags", "content", "draft", "account_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/admin/articles Completed 302 Found in 8ms (ActiveRecord: 1.8ms) [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "pages_cms_articles"[0m [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m -------------------------------------------------------------- PagesCms::Admin::ContactsControllerTest: test_should_get_index -------------------------------------------------------------- [1m[35mPagesCms::Account Load (0.4ms)[0m 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 [1m[36mPagesCms::Account Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m 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) [1m[36mPagesCms::Contact Load (0.3ms)[0m [1mSELECT "pages_cms_contacts".* FROM "pages_cms_contacts" WHERE "pages_cms_contacts"."account_id" = $1[0m [["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) [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (1.4ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.4ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Account Load (0.2ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.2ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 ORDER BY "pages_cms_accounts"."id" ASC LIMIT 1 [["id", 1]] [1m[36mPagesCms::Page Load (0.4ms)[0m [1mSELECT "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[0m [["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) [1m[35m (0.2ms)[0m ROLLBACK [1m[36m (0.1ms)[0m [1mBEGIN[0m ----------------------------------------- PagesCms::PageBlockTest: test_valid_block ----------------------------------------- [1m[35mPagesCms::PageBlock Load (0.3ms)[0m SELECT "pages_cms_page_blocks".* FROM "pages_cms_page_blocks" WHERE "pages_cms_page_blocks"."id" = $1 LIMIT 1 [["id", 980190962]] [1m[36m (0.1ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN ---------------------------------------- PagesCms::ImageTest: test_image_is_valid ---------------------------------------- [1m[36mPagesCms::Image Load (0.3ms)[0m [1mSELECT "pages_cms_images".* FROM "pages_cms_images" WHERE "pages_cms_images"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35mPagesCms::Account Load (0.3ms)[0m SELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mROLLBACK[0m [1m[35m (0.1ms)[0m BEGIN -------------------------------------------------------- PagesCms::Admin::ImagesControllerTest: test_image_upload -------------------------------------------------------- [1m[36mPagesCms::Account Load (0.3ms)[0m [1mSELECT "pages_cms_accounts".* FROM "pages_cms_accounts" WHERE "pages_cms_accounts"."id" = $1 LIMIT 1[0m [["id", 1]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "pages_cms_images" Processing by PagesCms::Admin::ImagesController#create as HTML Parameters: {"image"=>{"file"=>#