[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