(124.5ms) DROP DATABASE IF EXISTS "dummy_test"  (246.4ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.9ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (5.0ms) CREATE TABLE "plotline_entries" ("id" serial primary key, "type" character varying, "title" character varying, "slug" character varying, "payload" json, "user_id" integer, "author_name" character varying, "published_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_plotline_entries_on_slug" ON "plotline_entries" USING btree ("slug")  (1.0ms) CREATE INDEX "index_plotline_entries_on_type" ON "plotline_entries" USING btree ("type")  (0.9ms) CREATE INDEX "index_plotline_entries_on_user_id" ON "plotline_entries" USING btree ("user_id")  (2.9ms) CREATE TABLE "plotline_entry_search_data" ("id" serial primary key, "entry_id" integer, "attr_name" character varying, "search_data" tsvector, "raw_data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_plotline_entry_search_data_on_entry_id" ON "plotline_entry_search_data" USING btree ("entry_id")  (0.8ms) CREATE INDEX "idx_search_data" ON "plotline_entry_search_data" USING gin ("search_data")  (3.5ms) CREATE TABLE "plotline_images" ("id" serial primary key, "image" character varying, "width" integer, "height" integer, "file_size" integer, "content_type" character varying, "created_at" timestamp, "updated_at" timestamp)   (2.5ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)   (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20160212172219')  (3.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" ORDER BY "ar_internal_metadata"."key" ASC LIMIT $1 [["LIMIT", 1]]  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2016-02-16 15:57:55 UTC], ["updated_at", 2016-02-16 15:57:55 UTC]]  (0.4ms) COMMIT ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" ORDER BY "ar_internal_metadata"."key" ASC LIMIT $1 [["LIMIT", 1]]  (0.1ms) BEGIN  (0.2ms) COMMIT ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) SELECT pg_try_advisory_lock(2735718569030447490); ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePlotlineEntries (20150831131759)  (0.1ms) BEGIN  (4.1ms) CREATE TABLE "plotline_entries" ("id" serial primary key, "type" character varying, "title" character varying, "slug" character varying, "payload" json, "user_id" integer, "author_name" character varying, "published_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.2ms) ROLLBACK  (0.3ms) SELECT pg_advisory_unlock(2735718569030447490) ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]]  (123.2ms) DROP DATABASE IF EXISTS "dummy_test"  (255.6ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.9ms) CREATE TABLE "plotline_entries" ("id" serial primary key, "type" character varying, "title" character varying, "slug" character varying, "payload" json, "user_id" integer, "author_name" character varying, "published_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_plotline_entries_on_slug" ON "plotline_entries" USING btree ("slug")  (1.0ms) CREATE INDEX "index_plotline_entries_on_type" ON "plotline_entries" USING btree ("type")  (1.0ms) CREATE INDEX "index_plotline_entries_on_user_id" ON "plotline_entries" USING btree ("user_id")  (3.1ms) CREATE TABLE "plotline_entry_search_data" ("id" serial primary key, "entry_id" integer, "attr_name" character varying, "search_data" tsvector, "raw_data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_plotline_entry_search_data_on_entry_id" ON "plotline_entry_search_data" USING btree ("entry_id")  (0.9ms) CREATE INDEX "idx_search_data" ON "plotline_entry_search_data" USING gin ("search_data")  (4.7ms) CREATE TABLE "plotline_images" ("id" serial primary key, "image" character varying, "width" integer, "height" integer, "file_size" integer, "content_type" character varying, "created_at" timestamp, "updated_at" timestamp)   (2.4ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)   (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20160212172219')  (2.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" ORDER BY "ar_internal_metadata"."key" ASC LIMIT $1 [["LIMIT", 1]]  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2016-02-16 15:58:13 UTC], ["updated_at", 2016-02-16 15:58:13 UTC]]  (0.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" ORDER BY "ar_internal_metadata"."key" ASC LIMIT $1 [["LIMIT", 1]]  (0.1ms) BEGIN  (0.1ms) COMMIT ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.8ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)   (2.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.1ms) SELECT pg_try_advisory_lock(2735718569030447490); ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePlotlineEntries (20150831131759)  (0.2ms) BEGIN  (3.1ms) CREATE TABLE "plotline_entries" ("id" serial primary key, "type" character varying, "title" character varying, "slug" character varying, "payload" json, "user_id" integer, "author_name" character varying, "published_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE INDEX "index_plotline_entries_on_type" ON "plotline_entries" ("type")  (0.7ms) CREATE INDEX "index_plotline_entries_on_slug" ON "plotline_entries" ("slug")  (0.7ms) CREATE INDEX "index_plotline_entries_on_user_id" ON "plotline_entries" ("user_id") SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20150831131759"]]  (0.5ms) COMMIT Migrating to CreatePlotlineEntrySearchData (20150911135536)  (0.2ms) BEGIN  (2.6ms) CREATE TABLE "plotline_entry_search_data" ("id" serial primary key, "entry_id" integer, "attr_name" character varying, "search_data" tsvector, "raw_data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE INDEX "index_plotline_entry_search_data_on_entry_id" ON "plotline_entry_search_data" ("entry_id")  (0.7ms) create index idx_search_data on plotline_entry_search_data using gin(search_data) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20150911135536"]]  (0.4ms) COMMIT Migrating to CreatePlotlineImages (20160212172219)  (0.2ms) BEGIN  (2.8ms) CREATE TABLE "plotline_images" ("id" serial primary key, "image" character varying, "width" integer, "height" integer, "file_size" integer, "content_type" character varying, "created_at" timestamp, "updated_at" timestamp)  SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160212172219"]]  (0.5ms) COMMIT ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" ORDER BY "ar_internal_metadata"."key" ASC LIMIT $1 [["LIMIT", 1]]  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2016-02-16 15:58:40 UTC], ["updated_at", 2016-02-16 15:58:40 UTC]]  (0.4ms) COMMIT  (0.2ms) SELECT pg_advisory_unlock(2735718569030447490) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'plotline_entries' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.6ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'plotline_entry_search_data' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'plotline_images' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (11.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.6ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-02-16 15:58:58.855854', '2016-02-16 15:58:58.855854', 822834886)  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN -------------------------- PlotlineTest: test_truth --------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------ Plotline::EntrySearchDataTest: test_index_entry_data ------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-02-16 15:58:58 UTC], ["updated_at", 2016-02-16 15:58:58 UTC]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-02-16 15:58:58 UTC], ["updated_at", 2016-02-16 15:58:58 UTC]] SQL (32.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-02-16 15:58:58 UTC], ["updated_at", 2016-02-16 15:58:58 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-02-16 15:58:58 UTC], ["updated_at", 2016-02-16 15:58:58 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-02-16 15:58:58 UTC], ["updated_at", 2016-02-16 15:58:58 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-02-16 15:58:58 UTC], ["updated_at", 2016-02-16 15:58:58 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-02-16 15:58:59 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- Plotline::EntrySearchDataTest: test_search --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-02-16 15:58:59 UTC], ["updated_at", 2016-02-16 15:58:59 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-02-16 15:58:59 UTC], ["updated_at", 2016-02-16 15:58:59 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-02-16 15:58:59 UTC], ["updated_at", 2016-02-16 15:58:59 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-02-16 15:58:59 UTC], ["updated_at", 2016-02-16 15:58:59 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-02-16 15:58:59 UTC], ["updated_at", 2016-02-16 15:58:59 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-02-16 15:58:59 UTC], ["updated_at", 2016-02-16 15:58:59 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.3ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- Plotline::EntryTest: test_content_attr ----------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_search_attributes ---------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------- Plotline::EntryTest: test_searchable_attributes -------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_update_search_index -----------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-02-16 15:58:59 UTC], ["updated_at", 2016-02-16 15:58:59 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-02-16 15:58:59 UTC], ["updated_at", 2016-02-16 15:58:59 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-02-16 15:58:59 UTC], ["updated_at", 2016-02-16 15:58:59 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- Plotline::PreviewsControllerTest: test_should_get_show -------------------------------------------------------- Processing by Plotline::PreviewsController#show as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/previews/show.html.erb (3.7ms) Completed 200 OK in 11ms (Views: 10.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in --------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/login Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry --------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (2.7ms) Completed 500 Internal Server Error in 1538ms (ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_get_edit ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#edit as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/_form.html.erb (86.5ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/edit.html.erb within layouts/plotline/application (90.7ms) Completed 500 Internal Server Error in 634ms (ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_new ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#new as HTML Parameters: {"content_class"=>"BlogPost"} Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/_form.html.erb (10.2ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/new.html.erb within layouts/plotline/application (11.0ms) Completed 500 Internal Server Error in 565ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- Plotline::EntriesControllerTest: test_should_create_entry ----------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') Processing by Plotline::EntriesController#create as HTML Parameters: {"entry"=>{"body"=>"hello", "title"=>"Hello World", "type"=>"BlogPost"}, "content_class"=>"BlogPost"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"hello\"}"], ["created_at", 2016-02-16 15:59:01 UTC], ["updated_at", 2016-02-16 15:59:01 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834892], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834892], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834892], ["attr_name", "title"], ["created_at", 2016-02-16 15:59:01 UTC], ["updated_at", 2016-02-16 15:59:01 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834892], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834892], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834892], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834892], ["attr_name", "body"], ["created_at", 2016-02-16 15:59:01 UTC], ["updated_at", 2016-02-16 15:59:01 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'hello', search_data = to_tsvector('english', 'hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834892], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries/822834892 Completed 302 Found in 15ms (ActiveRecord: 2.6ms)  (0.3ms) SELECT COUNT(*) FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost')  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- Plotline::EntriesControllerTest: test_should_update_entry ----------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#update as HTML Parameters: {"entry"=>{"body"=>"updated body", "title"=>"Hello World"}, "content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.1ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "plotline_entries" SET "payload" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["payload", "{\"body\":\"updated body\"}"], ["updated_at", 2016-02-16 15:59:01 UTC], ["id", 822834886]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834886], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834886], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834886], ["attr_name", "title"], ["created_at", 2016-02-16 15:59:01 UTC], ["updated_at", 2016-02-16 15:59:01 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834886], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834886], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834886], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834886], ["attr_name", "body"], ["created_at", 2016-02-16 15:59:01 UTC], ["updated_at", 2016-02-16 15:59:01 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'updated body', search_data = to_tsvector('english', 'updated body') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834886], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries/822834886 Completed 302 Found in 14ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ Plotline::EntriesControllerTest: test_should_destroy_entry ------------------------------------------------------------ Plotline::Entry Load (0.1ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.1ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- Plotline::EntriesControllerTest: test_should_get_index -------------------------------------------------------- Plotline::Entry Load (0.1ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (3.6ms) Completed 500 Internal Server Error in 546ms (ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index ---------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (0.3ms) Completed 500 Internal Server Error in 512ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.7ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-02-16 16:00:04.440083', '2016-02-16 16:00:04.440083', 822834886)  (1.9ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------------------------------------ Plotline::EntrySearchDataTest: test_index_entry_data ------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-02-16 16:00:04 UTC], ["updated_at", 2016-02-16 16:00:04 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-02-16 16:00:04 UTC], ["updated_at", 2016-02-16 16:00:04 UTC]] SQL (1.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-02-16 16:00:04 UTC], ["updated_at", 2016-02-16 16:00:04 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-02-16 16:00:04 UTC], ["updated_at", 2016-02-16 16:00:04 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-02-16 16:00:04 UTC], ["updated_at", 2016-02-16 16:00:04 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-02-16 16:00:04 UTC], ["updated_at", 2016-02-16 16:00:04 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-02-16 16:00:04 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- Plotline::EntrySearchDataTest: test_search --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-02-16 16:00:04 UTC], ["updated_at", 2016-02-16 16:00:04 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-02-16 16:00:04 UTC], ["updated_at", 2016-02-16 16:00:04 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-02-16 16:00:04 UTC], ["updated_at", 2016-02-16 16:00:04 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-02-16 16:00:04 UTC], ["updated_at", 2016-02-16 16:00:04 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-02-16 16:00:04 UTC], ["updated_at", 2016-02-16 16:00:04 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-02-16 16:00:04 UTC], ["updated_at", 2016-02-16 16:00:04 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.2ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index ---------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (1.1ms) Completed 500 Internal Server Error in 788ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- Plotline::PreviewsControllerTest: test_should_get_show -------------------------------------------------------- Processing by Plotline::PreviewsController#show as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/previews/show.html.erb (0.4ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------- PlotlineTest: test_truth --------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- Plotline::EntriesControllerTest: test_should_create_entry ----------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') Processing by Plotline::EntriesController#create as HTML Parameters: {"entry"=>{"body"=>"hello", "title"=>"Hello World", "type"=>"BlogPost"}, "content_class"=>"BlogPost"}  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"hello\"}"], ["created_at", 2016-02-16 16:00:05 UTC], ["updated_at", 2016-02-16 16:00:05 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-02-16 16:00:05 UTC], ["updated_at", 2016-02-16 16:00:05 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-02-16 16:00:05 UTC], ["updated_at", 2016-02-16 16:00:05 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'hello', search_data = to_tsvector('english', 'hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries/822834891 Completed 302 Found in 15ms (ActiveRecord: 2.2ms)  (0.3ms) SELECT COUNT(*) FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost')  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_new ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#new as HTML Parameters: {"content_class"=>"BlogPost"} Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/_form.html.erb (49.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/new.html.erb within layouts/plotline/application (51.9ms) Completed 500 Internal Server Error in 557ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_get_edit ------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#edit as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/_form.html.erb (11.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/edit.html.erb within layouts/plotline/application (13.7ms) Completed 500 Internal Server Error in 509ms (ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ Plotline::EntriesControllerTest: test_should_destroy_entry ------------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in --------------------------------------------------------------------------------------- Plotline::Entry Load (0.1ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/login Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- Plotline::EntriesControllerTest: test_should_get_index -------------------------------------------------------- Plotline::Entry Load (0.1ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (3.7ms) Completed 500 Internal Server Error in 503ms (ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry --------------------------------------------------------- Plotline::Entry Load (0.1ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.1ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (1.6ms) Completed 500 Internal Server Error in 569ms (ActiveRecord: 0.1ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------------------- Plotline::EntriesControllerTest: test_should_update_entry ----------------------------------------------------------- Plotline::Entry Load (0.1ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#update as HTML Parameters: {"entry"=>{"body"=>"updated body", "title"=>"Hello World"}, "content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "plotline_entries" SET "payload" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["payload", "{\"body\":\"updated body\"}"], ["updated_at", 2016-02-16 16:00:07 UTC], ["id", 822834886]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834886], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834886], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834886], ["attr_name", "title"], ["created_at", 2016-02-16 16:00:07 UTC], ["updated_at", 2016-02-16 16:00:07 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834886], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834886], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834886], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834886], ["attr_name", "body"], ["created_at", 2016-02-16 16:00:07 UTC], ["updated_at", 2016-02-16 16:00:07 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'updated body', search_data = to_tsvector('english', 'updated body') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834886], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries/822834886 Completed 302 Found in 13ms (ActiveRecord: 2.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- Plotline::EntryTest: test_content_attr ----------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------- Plotline::EntryTest: test_searchable_attributes -------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_search_attributes ---------------------------------------------  (0.1ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_update_search_index -----------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-02-16 16:00:07 UTC], ["updated_at", 2016-02-16 16:00:07 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834892], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834892], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834892], ["attr_name", "title"], ["created_at", 2016-02-16 16:00:07 UTC], ["updated_at", 2016-02-16 16:00:07 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834892], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834892], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834892], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834892], ["attr_name", "body"], ["created_at", 2016-02-16 16:00:07 UTC], ["updated_at", 2016-02-16 16:00:07 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834892], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-02-16 16:00:39.680064', '2016-02-16 16:00:39.680064', 822834886)  (1.7ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------------------------------------ Plotline::EntrySearchDataTest: test_index_entry_data ------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-02-16 16:00:39 UTC], ["updated_at", 2016-02-16 16:00:39 UTC]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-02-16 16:00:39 UTC], ["updated_at", 2016-02-16 16:00:39 UTC]] SQL (1.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-02-16 16:00:39 UTC], ["updated_at", 2016-02-16 16:00:39 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-02-16 16:00:39 UTC], ["updated_at", 2016-02-16 16:00:39 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-02-16 16:00:39 UTC], ["updated_at", 2016-02-16 16:00:39 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-02-16 16:00:39 UTC], ["updated_at", 2016-02-16 16:00:39 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-02-16 16:00:39 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------- Plotline::EntrySearchDataTest: test_search --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-02-16 16:00:39 UTC], ["updated_at", 2016-02-16 16:00:39 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-02-16 16:00:39 UTC], ["updated_at", 2016-02-16 16:00:39 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-02-16 16:00:39 UTC], ["updated_at", 2016-02-16 16:00:39 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-02-16 16:00:39 UTC], ["updated_at", 2016-02-16 16:00:39 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-02-16 16:00:39 UTC], ["updated_at", 2016-02-16 16:00:39 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-02-16 16:00:39 UTC], ["updated_at", 2016-02-16 16:00:39 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.2ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (1.3ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------- PlotlineTest: test_truth --------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- Plotline::PreviewsControllerTest: test_should_get_show -------------------------------------------------------- Processing by Plotline::PreviewsController#show as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/previews/show.html.erb (1.3ms) Completed 200 OK in 6ms (Views: 6.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index ---------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (0.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (7.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.5ms) Completed 200 OK in 1547ms (Views: 1544.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry --------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (1.9ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (0.9ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 11ms (Views: 7.5ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_get_edit ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#edit as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/_form.html.erb (56.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/edit.html.erb within layouts/plotline/application (61.2ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (2.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.1ms) Completed 200 OK in 71ms (Views: 66.9ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- Plotline::EntriesControllerTest: test_should_create_entry ----------------------------------------------------------- Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.4ms) SELECT COUNT(*) FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') Processing by Plotline::EntriesController#create as HTML Parameters: {"entry"=>{"body"=>"hello", "title"=>"Hello World", "type"=>"BlogPost"}, "content_class"=>"BlogPost"}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"hello\"}"], ["created_at", 2016-02-16 16:00:41 UTC], ["updated_at", 2016-02-16 16:00:41 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-02-16 16:00:41 UTC], ["updated_at", 2016-02-16 16:00:41 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-02-16 16:00:41 UTC], ["updated_at", 2016-02-16 16:00:41 UTC]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'hello', search_data = to_tsvector('english', 'hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries/822834891 Completed 302 Found in 14ms (ActiveRecord: 2.6ms)  (0.3ms) SELECT COUNT(*) FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost')  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- Plotline::EntriesControllerTest: test_should_get_index -------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (5.9ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (0.8ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 12ms (Views: 8.9ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_new ------------------------------------------------------ Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#new as HTML Parameters: {"content_class"=>"BlogPost"} Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/_form.html.erb (11.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/new.html.erb within layouts/plotline/application (12.0ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (0.9ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 19ms (Views: 15.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------ Plotline::EntriesControllerTest: test_should_destroy_entry ------------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in --------------------------------------------------------------------------------------- Plotline::Entry Load (0.1ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/login Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- Plotline::EntriesControllerTest: test_should_update_entry ----------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#update as HTML Parameters: {"entry"=>{"body"=>"updated body", "title"=>"Hello World"}, "content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "plotline_entries" SET "payload" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["payload", "{\"body\":\"updated body\"}"], ["updated_at", 2016-02-16 16:00:41 UTC], ["id", 822834886]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834886], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834886], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834886], ["attr_name", "title"], ["created_at", 2016-02-16 16:00:41 UTC], ["updated_at", 2016-02-16 16:00:41 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834886], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834886], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834886], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834886], ["attr_name", "body"], ["created_at", 2016-02-16 16:00:41 UTC], ["updated_at", 2016-02-16 16:00:41 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'updated body', search_data = to_tsvector('english', 'updated body') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834886], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries/822834886 Completed 302 Found in 17ms (ActiveRecord: 2.9ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_update_search_index -----------------------------------------------  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-02-16 16:00:41 UTC], ["updated_at", 2016-02-16 16:00:41 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834892], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.5ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834892], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834892], ["attr_name", "title"], ["created_at", 2016-02-16 16:00:41 UTC], ["updated_at", 2016-02-16 16:00:41 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834892], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834892], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834892], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834892], ["attr_name", "body"], ["created_at", 2016-02-16 16:00:41 UTC], ["updated_at", 2016-02-16 16:00:41 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834892], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------- Plotline::EntryTest: test_searchable_attributes -------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------- Plotline::EntryTest: test_content_attr ----------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_search_attributes ---------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (25.7ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (21.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]]  (144.2ms) DROP DATABASE IF EXISTS "dummy_test"  (418.9ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (1.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (12.3ms) CREATE TABLE "plotline_entries" ("id" serial primary key, "type" character varying, "title" character varying, "slug" character varying, "payload" json, "user_id" integer, "author_name" character varying, "published_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.9ms) CREATE INDEX "index_plotline_entries_on_slug" ON "plotline_entries" USING btree ("slug")  (1.1ms) CREATE INDEX "index_plotline_entries_on_type" ON "plotline_entries" USING btree ("type")  (0.9ms) CREATE INDEX "index_plotline_entries_on_user_id" ON "plotline_entries" USING btree ("user_id")  (3.1ms) CREATE TABLE "plotline_entry_search_data" ("id" serial primary key, "entry_id" integer, "attr_name" character varying, "search_data" tsvector, "raw_data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_plotline_entry_search_data_on_entry_id" ON "plotline_entry_search_data" USING btree ("entry_id")  (1.1ms) CREATE INDEX "idx_search_data" ON "plotline_entry_search_data" USING gin ("search_data")  (2.7ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)   (0.4ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150911135536')  (2.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" ORDER BY "ar_internal_metadata"."key" ASC LIMIT $1 [["LIMIT", 1]]  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2016-03-25 11:16:23 UTC], ["updated_at", 2016-03-25 11:16:23 UTC]]  (5.7ms) COMMIT ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" ORDER BY "ar_internal_metadata"."key" ASC LIMIT $1 [["LIMIT", 1]]  (0.1ms) BEGIN  (0.1ms) COMMIT ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) SELECT pg_try_advisory_lock(2735718569030447490); ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePlotlineEntries (20150831131759)  (0.1ms) BEGIN  (32.0ms) CREATE TABLE "plotline_entries" ("id" serial primary key, "type" character varying, "title" character varying, "slug" character varying, "body" text, "payload" json, "published_at" timestamp, "status" integer DEFAULT 0, "tags" text[] DEFAULT '{}', "parent_id" integer, "checksum" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.1ms) ROLLBACK  (0.2ms) SELECT pg_advisory_unlock(2735718569030447490) SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.9ms) DROP TABLE "plotline_entries" CASCADE  (3.8ms) CREATE TABLE "plotline_entries" ("id" serial primary key, "type" character varying, "title" character varying, "slug" character varying, "payload" json, "user_id" integer, "author_name" character varying, "published_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.5ms) CREATE INDEX "index_plotline_entries_on_slug" ON "plotline_entries" USING btree ("slug")  (1.2ms) CREATE INDEX "index_plotline_entries_on_type" ON "plotline_entries" USING btree ("type")  (1.1ms) CREATE INDEX "index_plotline_entries_on_user_id" ON "plotline_entries" USING btree ("user_id")  (1.8ms) DROP TABLE "plotline_entry_search_data" CASCADE  (4.4ms) CREATE TABLE "plotline_entry_search_data" ("id" serial primary key, "entry_id" integer, "attr_name" character varying, "search_data" tsvector, "raw_data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.0ms) CREATE INDEX "index_plotline_entry_search_data_on_entry_id" ON "plotline_entry_search_data" USING btree ("entry_id")  (1.6ms) CREATE INDEX "idx_search_data" ON "plotline_entry_search_data" USING gin ("search_data")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150831131759') ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" ORDER BY "ar_internal_metadata"."key" ASC LIMIT $1 [["LIMIT", 1]]  (0.2ms) BEGIN  (0.2ms) COMMIT ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" ORDER BY "ar_internal_metadata"."key" ASC LIMIT $1 [["LIMIT", 1]]  (0.1ms) BEGIN  (0.1ms) COMMIT ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) SELECT pg_try_advisory_lock(2735718569030447490); ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePlotlineImages (20160212172219)  (0.1ms) BEGIN  (5.8ms) CREATE TABLE "plotline_images" ("id" serial primary key, "image" character varying, "width" integer, "height" integer, "ratio" float, "file_size" integer, "content_type" character varying, "exif" json, "created_at" timestamp, "updated_at" timestamp)  SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160212172219"]]  (0.5ms) COMMIT Migrating to CreatePlotlineUsers (20160224161843)  (0.2ms) BEGIN  (2.8ms) CREATE TABLE "plotline_users" ("id" serial primary key, "email" character varying, "name" character varying, "password_digest" character varying, "auth_token" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160224161843"]]  (0.3ms) COMMIT ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" ORDER BY "ar_internal_metadata"."key" ASC LIMIT $1 [["LIMIT", 1]]  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.2ms) SELECT pg_advisory_unlock(2735718569030447490) ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.6ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'plotline_entries' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'plotline_entry_search_data' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (2.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'plotline_images' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (2.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'plotline_users' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (0.1ms) SELECT pg_try_advisory_lock(2735718569030447490); ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" ORDER BY "ar_internal_metadata"."key" ASC LIMIT $1 [["LIMIT", 1]]  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.3ms) SELECT pg_advisory_unlock(2735718569030447490) ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'plotline_entries' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'plotline_entry_search_data' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'plotline_images' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'plotline_users' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (0.2ms) SELECT pg_try_advisory_lock(2735718569030447490); ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" ORDER BY "ar_internal_metadata"."key" ASC LIMIT $1 [["LIMIT", 1]]  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.2ms) SELECT pg_advisory_unlock(2735718569030447490) ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'plotline_entries' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'plotline_entry_search_data' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.6ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'plotline_images' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'plotline_users' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (0.2ms) SELECT pg_try_advisory_lock(2735718569030447490); ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" ORDER BY "ar_internal_metadata"."key" ASC LIMIT $1 [["LIMIT", 1]]  (0.1ms) BEGIN  (0.1ms) COMMIT  (0.2ms) SELECT pg_advisory_unlock(2735718569030447490) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'plotline_entries' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'plotline_entry_search_data' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'plotline_images' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'plotline_users' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (0.2ms) SELECT pg_try_advisory_lock(2735718569030447490); ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" ORDER BY "ar_internal_metadata"."key" ASC LIMIT $1 [["LIMIT", 1]]  (0.2ms) BEGIN  (0.1ms) COMMIT  (0.2ms) SELECT pg_advisory_unlock(2735718569030447490) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.1ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'plotline_entries' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.6ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'plotline_entry_search_data' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'plotline_images' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'plotline_users' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (6.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.8ms) DELETE FROM "plotline_entries" Fixture Insert (0.8ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 11:20:27.347368', '2016-03-25 11:20:27.347368', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:20:27.372580', '2016-03-25 11:20:27.372580', 980190962) Fixture Insert (0.1ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:20:27.372580', '2016-03-25 11:20:27.372580', 298486374)  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.0ms)  (0.1ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 11:20:27 UTC], ["updated_at", 2016-03-25 11:20:27 UTC]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 11:20:27 UTC], ["updated_at", 2016-03-25 11:20:27 UTC]] SQL (31.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 11:20:27 UTC], ["updated_at", 2016-03-25 11:20:27 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:20:27 UTC], ["updated_at", 2016-03-25 11:20:27 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 11:20:27 UTC], ["updated_at", 2016-03-25 11:20:27 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 11:20:27 UTC], ["updated_at", 2016-03-25 11:20:27 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:20:27 UTC], ["updated_at", 2016-03-25 11:20:27 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 11:20:27 UTC], ["updated_at", 2016-03-25 11:20:27 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 11:20:27 UTC], ["updated_at", 2016-03-25 11:20:27 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834888]]  (0.5ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) SAVEPOINT active_record_2 SQL (0.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 11:20:27 UTC], ["id", 822834888]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:20:27 UTC], ["updated_at", 2016-03-25 11:20:27 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 11:20:27 UTC], ["updated_at", 2016-03-25 11:20:27 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 11:20:27 UTC], ["updated_at", 2016-03-25 11:20:27 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:20:27 UTC], ["updated_at", 2016-03-25 11:20:27 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 11:20:27 UTC], ["updated_at", 2016-03-25 11:20:27 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 11:20:27 UTC], ["updated_at", 2016-03-25 11:20:27 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 BlogPost Load (19.3ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.8ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.3ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntriesControllerTest: test_should_get_new ---------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------------------- Plotline::EntriesControllerTest: test_should_update_entry --------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------------------- Plotline::EntriesControllerTest: test_should_create_entry --------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost')  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.1ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ----------------------------------------------------- Plotline::EntriesControllerTest: test_should_get_edit ----------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.7ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 11:21:18.612378', '2016-03-25 11:21:18.612378', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:21:18.629385', '2016-03-25 11:21:18.629385', 980190962) Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:21:18.629385', '2016-03-25 11:21:18.629385', 298486374)  (2.2ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 11:21:18 UTC], ["updated_at", 2016-03-25 11:21:18 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 11:21:18 UTC], ["updated_at", 2016-03-25 11:21:18 UTC]] SQL (1.6ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 11:21:18 UTC], ["updated_at", 2016-03-25 11:21:18 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.0ms)  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.2ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:21:18 UTC], ["updated_at", 2016-03-25 11:21:18 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 11:21:18 UTC], ["updated_at", 2016-03-25 11:21:18 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 11:21:18 UTC], ["updated_at", 2016-03-25 11:21:18 UTC]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:21:18 UTC], ["updated_at", 2016-03-25 11:21:18 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 11:21:18 UTC], ["updated_at", 2016-03-25 11:21:18 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 11:21:18 UTC], ["updated_at", 2016-03-25 11:21:18 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.8ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:21:18 UTC], ["updated_at", 2016-03-25 11:21:18 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 11:21:18 UTC], ["updated_at", 2016-03-25 11:21:18 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 11:21:18 UTC], ["updated_at", 2016-03-25 11:21:18 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:21:18 UTC], ["updated_at", 2016-03-25 11:21:18 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 11:21:18 UTC], ["updated_at", 2016-03-25 11:21:18 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 11:21:18 UTC], ["updated_at", 2016-03-25 11:21:18 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.5ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834890]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.5ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 11:21:18 UTC], ["id", 822834890]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------------------- Plotline::EntriesControllerTest: test_should_update_entry --------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ----------------------------------------------------- Plotline::EntriesControllerTest: test_should_get_edit ----------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntriesControllerTest: test_should_get_new ---------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.1ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------------------- Plotline::EntriesControllerTest: test_should_create_entry --------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.4ms) SELECT COUNT(*) FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost')  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.3ms) BEGIN Fixture Delete (1.2ms) DELETE FROM "plotline_entries" Fixture Insert (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 11:21:53.393488', '2016-03-25 11:21:53.393488', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:21:53.425874', '2016-03-25 11:21:53.425874', 980190962) Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:21:53.425874', '2016-03-25 11:21:53.425874', 298486374)  (1.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:21:53 UTC], ["updated_at", 2016-03-25 11:21:53 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 11:21:53 UTC], ["updated_at", 2016-03-25 11:21:53 UTC]] SQL (1.7ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 11:21:53 UTC], ["updated_at", 2016-03-25 11:21:53 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:21:53 UTC], ["updated_at", 2016-03-25 11:21:53 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 11:21:53 UTC], ["updated_at", 2016-03-25 11:21:53 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 11:21:53 UTC], ["updated_at", 2016-03-25 11:21:53 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:21:53 UTC], ["updated_at", 2016-03-25 11:21:53 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 11:21:53 UTC], ["updated_at", 2016-03-25 11:21:53 UTC]] SQL (0.6ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.5ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 11:21:53 UTC], ["updated_at", 2016-03-25 11:21:53 UTC]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:21:53 UTC], ["updated_at", 2016-03-25 11:21:53 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 11:21:53 UTC], ["updated_at", 2016-03-25 11:21:53 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 11:21:53 UTC], ["updated_at", 2016-03-25 11:21:53 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834889]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 11:21:53 UTC], ["id", 822834889]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", "title"], ["LIMIT", 1]]  (0.5ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 12ms (ActiveRecord: 0.0ms)  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.4ms) SELECT COUNT(*) FROM "plotline_entries"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.5ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.3ms) SAVEPOINT active_record_2 SQL (0.6ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 11:21:53 UTC], ["updated_at", 2016-03-25 11:21:53 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.6ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.8ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 11:21:53 UTC], ["updated_at", 2016-03-25 11:21:53 UTC]] SQL (0.9ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.8ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 11:21:53 UTC], ["updated_at", 2016-03-25 11:21:53 UTC]] SQL (0.6ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.3ms) RELEASE SAVEPOINT active_record_2  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) BEGIN  (1.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.2ms) COMMIT  (0.3ms) BEGIN Fixture Delete (0.9ms) DELETE FROM "plotline_entries" Fixture Insert (1.0ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 11:26:38.030633', '2016-03-25 11:26:38.030633', 822834886) Fixture Delete (1.2ms) DELETE FROM "plotline_users" Fixture Insert (0.9ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:26:38.057406', '2016-03-25 11:26:38.057406', 980190962) Fixture Insert (0.9ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:26:38.057406', '2016-03-25 11:26:38.057406', 298486374)  (2.1ms) COMMIT  (0.4ms) BEGIN  (0.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.3ms) COMMIT  (0.3ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.3ms) ROLLBACK  (0.3ms) BEGIN ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.5ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.6ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.5ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 16ms (ActiveRecord: 2.0ms)  (0.4ms) SELECT COUNT(*) FROM "plotline_entries"  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.5ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.3ms) SAVEPOINT active_record_2 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.5ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.3ms) SAVEPOINT active_record_3 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.3ms) SAVEPOINT active_record_4 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.3ms) ROLLBACK TO SAVEPOINT active_record_4  (0.3ms) SAVEPOINT active_record_4 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.4ms) ROLLBACK TO SAVEPOINT active_record_4  (0.3ms) SAVEPOINT active_record_4 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.6ms) ROLLBACK TO SAVEPOINT active_record_4  (0.3ms) SAVEPOINT active_record_4 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (1.5ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.4ms) SAVEPOINT active_record_5 SQL (0.8ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 11:26:38 UTC], ["updated_at", 2016-03-25 11:26:38 UTC]] Plotline::EntrySearchData Load (0.6ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.9ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (1.7ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 11:26:38 UTC], ["updated_at", 2016-03-25 11:26:38 UTC]] SQL (4.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.7ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.8ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.9ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 11:26:38 UTC], ["updated_at", 2016-03-25 11:26:38 UTC]] SQL (0.9ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_5  (0.5ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.3ms) ROLLBACK TO SAVEPOINT active_record_4  (0.3ms) SAVEPOINT active_record_4 -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 2ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK TO SAVEPOINT active_record_4  (0.2ms) SAVEPOINT active_record_4 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.2ms) SAVEPOINT active_record_5 SQL (0.6ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:26:38 UTC], ["updated_at", 2016-03-25 11:26:38 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.8ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (1.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 11:26:38 UTC], ["updated_at", 2016-03-25 11:26:38 UTC]] SQL (1.1ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.6ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.9ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 11:26:38 UTC], ["updated_at", 2016-03-25 11:26:38 UTC]] SQL (1.0ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.3ms) RELEASE SAVEPOINT active_record_5  (0.4ms) SAVEPOINT active_record_5 SQL (0.7ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:26:38 UTC], ["updated_at", 2016-03-25 11:26:38 UTC]] Plotline::EntrySearchData Load (2.7ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (1.0ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.8ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 11:26:38 UTC], ["updated_at", 2016-03-25 11:26:38 UTC]] SQL (0.8ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.8ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.9ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.8ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 11:26:38 UTC], ["updated_at", 2016-03-25 11:26:38 UTC]] SQL (1.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.3ms) RELEASE SAVEPOINT active_record_5  (0.7ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834888]]  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) SAVEPOINT active_record_5 SQL (0.6ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 11:26:38 UTC], ["id", 822834888]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] SQL (0.7ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] SQL (0.6ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_5 Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", "title"], ["LIMIT", 1]]  (0.5ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_4  (0.2ms) SAVEPOINT active_record_4 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.2ms) SAVEPOINT active_record_5 SQL (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:26:38 UTC], ["updated_at", 2016-03-25 11:26:38 UTC]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.5ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 11:26:38 UTC], ["updated_at", 2016-03-25 11:26:38 UTC]] SQL (0.6ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.5ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 11:26:38 UTC], ["updated_at", 2016-03-25 11:26:38 UTC]] SQL (0.6ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_5  (0.2ms) SAVEPOINT active_record_5 SQL (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:26:38 UTC], ["updated_at", 2016-03-25 11:26:38 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.5ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 11:26:38 UTC], ["updated_at", 2016-03-25 11:26:38 UTC]] SQL (0.6ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.6ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 11:26:38 UTC], ["updated_at", 2016-03-25 11:26:38 UTC]] SQL (0.7ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_5 BlogPost Load (2.2ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (1.2ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (1.1ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (1.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (1.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.4ms) ROLLBACK TO SAVEPOINT active_record_4 ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN  (1.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.2ms) COMMIT  (0.3ms) BEGIN Fixture Delete (0.9ms) DELETE FROM "plotline_entries" Fixture Insert (1.1ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 11:27:57.329958', '2016-03-25 11:27:57.329958', 822834886) Fixture Delete (0.8ms) DELETE FROM "plotline_users" Fixture Insert (0.5ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:27:57.361694', '2016-03-25 11:27:57.361694', 980190962) Fixture Insert (0.4ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:27:57.361694', '2016-03-25 11:27:57.361694', 298486374)  (2.8ms) COMMIT  (0.2ms) BEGIN  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.2ms) COMMIT  (0.3ms) BEGIN ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.5ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 8ms (ActiveRecord: 0.0ms)  (0.3ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.5ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.4ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.5ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_2 SQL (1.2ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.2ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 11ms (ActiveRecord: 2.2ms)  (0.6ms) SELECT COUNT(*) FROM "plotline_entries"  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.7ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (32.2ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (19.8ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (1.2ms) Completed 200 OK in 13648ms (Views: 13640.5ms | ActiveRecord: 0.7ms)  (0.5ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.7ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.9ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (24.8ms) Completed 500 Internal Server Error in 42ms (ActiveRecord: 0.9ms)  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.4ms) SAVEPOINT active_record_2 SQL (0.9ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:28:11 UTC], ["updated_at", 2016-03-25 11:28:11 UTC]] Plotline::EntrySearchData Load (1.6ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.8ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (1.1ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 11:28:11 UTC], ["updated_at", 2016-03-25 11:28:11 UTC]] SQL (4.0ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.7ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.8ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 11:28:11 UTC], ["updated_at", 2016-03-25 11:28:11 UTC]] SQL (1.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.3ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SQL (0.8ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:28:11 UTC], ["updated_at", 2016-03-25 11:28:11 UTC]] Plotline::EntrySearchData Load (0.6ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (1.0ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.7ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 11:28:11 UTC], ["updated_at", 2016-03-25 11:28:11 UTC]] SQL (0.9ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.6ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.8ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (1.1ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 11:28:11 UTC], ["updated_at", 2016-03-25 11:28:11 UTC]] SQL (1.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.3ms) RELEASE SAVEPOINT active_record_2  (1.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.7ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.4ms) SAVEPOINT active_record_2 SQL (0.9ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 11:28:11 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.9ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (1.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.9ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (1.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.5ms) RELEASE SAVEPOINT active_record_2 Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.7ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.3ms) SAVEPOINT active_record_2 SQL (0.8ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:28:11 UTC], ["updated_at", 2016-03-25 11:28:11 UTC]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.9ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.7ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 11:28:11 UTC], ["updated_at", 2016-03-25 11:28:11 UTC]] SQL (1.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (1.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.9ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 11:28:11 UTC], ["updated_at", 2016-03-25 11:28:11 UTC]] SQL (1.7ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.6ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SQL (1.1ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:28:11 UTC], ["updated_at", 2016-03-25 11:28:11 UTC]] Plotline::EntrySearchData Load (0.6ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (1.0ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.7ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 11:28:11 UTC], ["updated_at", 2016-03-25 11:28:11 UTC]] SQL (1.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (1.0ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.8ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 11:28:11 UTC], ["updated_at", 2016-03-25 11:28:11 UTC]] SQL (1.1ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.3ms) RELEASE SAVEPOINT active_record_2 BlogPost Load (2.8ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (1.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (2.1ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (1.8ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (1.9ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.5ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.7ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.5ms) SAVEPOINT active_record_2 SQL (0.8ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 11:28:11 UTC], ["updated_at", 2016-03-25 11:28:11 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (1.0ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (1.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 11:28:11 UTC], ["updated_at", 2016-03-25 11:28:11 UTC]] SQL (0.9ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.9ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.8ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 11:28:11 UTC], ["updated_at", 2016-03-25 11:28:11 UTC]] SQL (0.9ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.6ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (2.6ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (6.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (6.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 11:31:44.441684', '2016-03-25 11:31:44.441684', 822834886) Fixture Delete (0.2ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:31:44.464748', '2016-03-25 11:31:44.464748', 980190962) Fixture Insert (0.1ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:31:44.464748', '2016-03-25 11:31:44.464748', 298486374)  (5.0ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (12.7ms) Completed 500 Internal Server Error in 26ms (ActiveRecord: 0.3ms)  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (9.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (5.2ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.4ms) Completed 200 OK in 294ms (Views: 291.3ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 5ms (ActiveRecord: 0.8ms)  (0.3ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:31:44 UTC], ["updated_at", 2016-03-25 11:31:44 UTC]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (5.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 11:31:44 UTC], ["updated_at", 2016-03-25 11:31:44 UTC]] SQL (24.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 11:31:44 UTC], ["updated_at", 2016-03-25 11:31:44 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:31:44 UTC], ["updated_at", 2016-03-25 11:31:44 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 11:31:44 UTC], ["updated_at", 2016-03-25 11:31:44 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 11:31:45 UTC], ["updated_at", 2016-03-25 11:31:45 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 11:31:45 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:31:45 UTC], ["updated_at", 2016-03-25 11:31:45 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 11:31:45 UTC], ["updated_at", 2016-03-25 11:31:45 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 11:31:45 UTC], ["updated_at", 2016-03-25 11:31:45 UTC]] SQL (1.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:31:45 UTC], ["updated_at", 2016-03-25 11:31:45 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 11:31:45 UTC], ["updated_at", 2016-03-25 11:31:45 UTC]] SQL (0.7ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 11:31:45 UTC], ["updated_at", 2016-03-25 11:31:45 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 BlogPost Load (1.3ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (2.2ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 11:31:45 UTC], ["updated_at", 2016-03-25 11:31:45 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 11:31:45 UTC], ["updated_at", 2016-03-25 11:31:45 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 11:31:45 UTC], ["updated_at", 2016-03-25 11:31:45 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 11:32:05.064073', '2016-03-25 11:32:05.064073', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:32:05.076056', '2016-03-25 11:32:05.076056', 980190962) Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:32:05.076056', '2016-03-25 11:32:05.076056', 298486374)  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 7ms (ActiveRecord: 0.9ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.1ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_3 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.1ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_4 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:32:05 UTC], ["updated_at", 2016-03-25 11:32:05 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 11:32:05 UTC], ["updated_at", 2016-03-25 11:32:05 UTC]] SQL (1.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 11:32:05 UTC], ["updated_at", 2016-03-25 11:32:05 UTC]] SQL (0.6ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:32:05 UTC], ["updated_at", 2016-03-25 11:32:05 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 11:32:05 UTC], ["updated_at", 2016-03-25 11:32:05 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 11:32:05 UTC], ["updated_at", 2016-03-25 11:32:05 UTC]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_5 SQL (0.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 11:32:05 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.7ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5 Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:32:05 UTC], ["updated_at", 2016-03-25 11:32:05 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 11:32:05 UTC], ["updated_at", 2016-03-25 11:32:05 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 11:32:05 UTC], ["updated_at", 2016-03-25 11:32:05 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_5  (0.1ms) SAVEPOINT active_record_5 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:32:05 UTC], ["updated_at", 2016-03-25 11:32:05 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 11:32:05 UTC], ["updated_at", 2016-03-25 11:32:05 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 11:32:05 UTC], ["updated_at", 2016-03-25 11:32:05 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5 BlogPost Load (0.9ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_5 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 11:32:05 UTC], ["updated_at", 2016-03-25 11:32:05 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 11:32:05 UTC], ["updated_at", 2016-03-25 11:32:05 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 11:32:05 UTC], ["updated_at", 2016-03-25 11:32:05 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 11:32:49.171948', '2016-03-25 11:32:49.171948', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:32:49.182819', '2016-03-25 11:32:49.182819', 980190962) Fixture Insert (0.1ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:32:49.182819', '2016-03-25 11:32:49.182819', 298486374)  (1.6ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:32:49 UTC], ["updated_at", 2016-03-25 11:32:49 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 11:32:49 UTC], ["updated_at", 2016-03-25 11:32:49 UTC]] SQL (1.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 11:32:49 UTC], ["updated_at", 2016-03-25 11:32:49 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:32:49 UTC], ["updated_at", 2016-03-25 11:32:49 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 11:32:49 UTC], ["updated_at", 2016-03-25 11:32:49 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 11:32:49 UTC], ["updated_at", 2016-03-25 11:32:49 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 11:32:49 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:32:49 UTC], ["updated_at", 2016-03-25 11:32:49 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 11:32:49 UTC], ["updated_at", 2016-03-25 11:32:49 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 11:32:49 UTC], ["updated_at", 2016-03-25 11:32:49 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:32:49 UTC], ["updated_at", 2016-03-25 11:32:49 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 11:32:49 UTC], ["updated_at", 2016-03-25 11:32:49 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 11:32:49 UTC], ["updated_at", 2016-03-25 11:32:49 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (0.9ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 11:32:49 UTC], ["updated_at", 2016-03-25 11:32:49 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 11:32:49 UTC], ["updated_at", 2016-03-25 11:32:49 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 11:32:49 UTC], ["updated_at", 2016-03-25 11:32:49 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (10.8ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (5.2ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.6ms) Completed 200 OK in 262ms (Views: 259.1ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (8.2ms) Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 11:34:59.503603', '2016-03-25 11:34:59.503603', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:34:59.512981', '2016-03-25 11:34:59.512981', 980190962)  (1.6ms) COMMIT  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:34:59 UTC], ["updated_at", 2016-03-25 11:34:59 UTC]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 11:34:59 UTC], ["updated_at", 2016-03-25 11:34:59 UTC]] SQL (1.1ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 11:34:59 UTC], ["updated_at", 2016-03-25 11:34:59 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:34:59 UTC], ["updated_at", 2016-03-25 11:34:59 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 11:34:59 UTC], ["updated_at", 2016-03-25 11:34:59 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 11:34:59 UTC], ["updated_at", 2016-03-25 11:34:59 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 11:34:59 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:34:59 UTC], ["updated_at", 2016-03-25 11:34:59 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 11:34:59 UTC], ["updated_at", 2016-03-25 11:34:59 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 11:34:59 UTC], ["updated_at", 2016-03-25 11:34:59 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:34:59 UTC], ["updated_at", 2016-03-25 11:34:59 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 11:34:59 UTC], ["updated_at", 2016-03-25 11:34:59 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 11:34:59 UTC], ["updated_at", 2016-03-25 11:34:59 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.1ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.8ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 11:34:59 UTC], ["updated_at", 2016-03-25 11:34:59 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 11:34:59 UTC], ["updated_at", 2016-03-25 11:34:59 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 11:34:59 UTC], ["updated_at", 2016-03-25 11:34:59 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (10.0ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (4.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.7ms) Completed 200 OK in 246ms (Views: 242.7ms | ActiveRecord: 0.2ms)  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (6.4ms) Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.3ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 11:35:47.594292', '2016-03-25 11:35:47.594292', 822834886) Fixture Delete (0.4ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:35:47.604775', '2016-03-25 11:35:47.604775', 980190962)  (1.7ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:35:47 UTC], ["updated_at", 2016-03-25 11:35:47 UTC]] Plotline::EntrySearchData Load (0.6ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 11:35:47 UTC], ["updated_at", 2016-03-25 11:35:47 UTC]] SQL (1.1ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 11:35:47 UTC], ["updated_at", 2016-03-25 11:35:47 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:35:47 UTC], ["updated_at", 2016-03-25 11:35:47 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 11:35:47 UTC], ["updated_at", 2016-03-25 11:35:47 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 11:35:47 UTC], ["updated_at", 2016-03-25 11:35:47 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.3ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:35:47 UTC], ["updated_at", 2016-03-25 11:35:47 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 11:35:47 UTC], ["updated_at", 2016-03-25 11:35:47 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 11:35:47 UTC], ["updated_at", 2016-03-25 11:35:47 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:35:47 UTC], ["updated_at", 2016-03-25 11:35:47 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 11:35:47 UTC], ["updated_at", 2016-03-25 11:35:47 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 11:35:47 UTC], ["updated_at", 2016-03-25 11:35:47 UTC]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834889]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 11:35:47 UTC], ["id", 822834889]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", "title"], ["LIMIT", 1]]  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_3 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_4 -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) SAVEPOINT active_record_5 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 11:35:47 UTC], ["updated_at", 2016-03-25 11:35:47 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 11:35:47 UTC], ["updated_at", 2016-03-25 11:35:47 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 11:35:47 UTC], ["updated_at", 2016-03-25 11:35:47 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 11:36:22.321101', '2016-03-25 11:36:22.321101', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:36:22.333357', '2016-03-25 11:36:22.333357', 980190962)  (1.7ms) COMMIT  (0.1ms) BEGIN  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (4.9ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (7.2ms) Completed 500 Internal Server Error in 256ms (ActiveRecord: 0.0ms)  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (8.0ms) Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (10.2ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.5ms) Completed 200 OK in 22ms (Views: 17.5ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.4ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 5ms (ActiveRecord: 0.8ms)  (2.1ms) SELECT COUNT(*) FROM "plotline_entries"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 11:36:22 UTC], ["updated_at", 2016-03-25 11:36:22 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.6ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.7ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 11:36:22 UTC], ["updated_at", 2016-03-25 11:36:22 UTC]] SQL (2.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.6ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 11:36:22 UTC], ["updated_at", 2016-03-25 11:36:22 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:36:22 UTC], ["updated_at", 2016-03-25 11:36:22 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 11:36:22 UTC], ["updated_at", 2016-03-25 11:36:22 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 11:36:22 UTC], ["updated_at", 2016-03-25 11:36:22 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:36:22 UTC], ["updated_at", 2016-03-25 11:36:22 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 11:36:22 UTC], ["updated_at", 2016-03-25 11:36:22 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 11:36:22 UTC], ["updated_at", 2016-03-25 11:36:22 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834888]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 11:36:22 UTC], ["id", 822834888]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:36:22 UTC], ["updated_at", 2016-03-25 11:36:22 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 11:36:22 UTC], ["updated_at", 2016-03-25 11:36:22 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 11:36:22 UTC], ["updated_at", 2016-03-25 11:36:22 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:36:22 UTC], ["updated_at", 2016-03-25 11:36:22 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 11:36:22 UTC], ["updated_at", 2016-03-25 11:36:22 UTC]] SQL (0.7ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 11:36:22 UTC], ["updated_at", 2016-03-25 11:36:22 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 11:36:55.792555', '2016-03-25 11:36:55.792555', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:36:55.804829', '2016-03-25 11:36:55.804829', 980190962)  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 11:36:55 UTC], ["updated_at", 2016-03-25 11:36:55 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 11:36:55 UTC], ["updated_at", 2016-03-25 11:36:55 UTC]] SQL (1.1ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 11:36:55 UTC], ["updated_at", 2016-03-25 11:36:55 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:36:55 UTC], ["updated_at", 2016-03-25 11:36:55 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 11:36:55 UTC], ["updated_at", 2016-03-25 11:36:55 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 11:36:55 UTC], ["updated_at", 2016-03-25 11:36:55 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:36:55 UTC], ["updated_at", 2016-03-25 11:36:55 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 11:36:55 UTC], ["updated_at", 2016-03-25 11:36:55 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 11:36:55 UTC], ["updated_at", 2016-03-25 11:36:55 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834888]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 11:36:55 UTC], ["id", 822834888]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:36:55 UTC], ["updated_at", 2016-03-25 11:36:55 UTC]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.5ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 11:36:55 UTC], ["updated_at", 2016-03-25 11:36:55 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 11:36:55 UTC], ["updated_at", 2016-03-25 11:36:55 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:36:55 UTC], ["updated_at", 2016-03-25 11:36:55 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 11:36:55 UTC], ["updated_at", 2016-03-25 11:36:55 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 11:36:55 UTC], ["updated_at", 2016-03-25 11:36:55 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (0.9ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (8.2ms) Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.3ms)  (0.3ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 5ms (ActiveRecord: 0.8ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (6.8ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (4.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.5ms) Completed 200 OK in 260ms (Views: 257.6ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (0.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (3.5ms) Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]]  (138.5ms) DROP DATABASE IF EXISTS "dummy_test"  (6.0ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)   (2.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.2ms) SELECT pg_try_advisory_lock(2735718569030447490); ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreatePlotlineEntries (20150831131759)  (0.1ms) BEGIN  (15.1ms) CREATE TABLE "plotline_entries" ("id" serial primary key, "type" character varying, "title" character varying, "slug" character varying, "body" text, "payload" json, "published_at" timestamp, "status" integer DEFAULT 0, "tags" text[] DEFAULT '{}', "parent_id" integer, "checksum" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (5.5ms) CREATE INDEX "index_plotline_entries_on_type" ON "plotline_entries" ("type")  (0.9ms) CREATE INDEX "index_plotline_entries_on_slug" ON "plotline_entries" ("slug")  (1.5ms) CREATE INDEX "index_plotline_entries_on_status" ON "plotline_entries" ("status")  (1.0ms) CREATE INDEX "index_plotline_entries_on_parent_id" ON "plotline_entries" ("parent_id")  (0.9ms) CREATE INDEX "index_plotline_entries_on_tags" ON "plotline_entries" USING gin ("tags") SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20150831131759"]]  (0.5ms) COMMIT Migrating to CreatePlotlineEntrySearchData (20150911135536)  (7.4ms) BEGIN  (14.7ms) CREATE TABLE "plotline_entry_search_data" ("id" serial primary key, "entry_id" integer, "attr_name" character varying, "search_data" tsvector, "raw_data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_plotline_entry_search_data_on_entry_id" ON "plotline_entry_search_data" ("entry_id")  (1.0ms) create index idx_search_data on plotline_entry_search_data using gin(search_data) SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20150911135536"]]  (0.5ms) COMMIT Migrating to CreatePlotlineImages (20160212172219)  (5.6ms) BEGIN  (14.2ms) CREATE TABLE "plotline_images" ("id" serial primary key, "image" character varying, "width" integer, "height" integer, "ratio" float, "file_size" integer, "content_type" character varying, "exif" json, "created_at" timestamp, "updated_at" timestamp)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160212172219"]]  (4.5ms) COMMIT Migrating to CreatePlotlineUsers (20160224161843)  (5.5ms) BEGIN  (14.5ms) CREATE TABLE "plotline_users" ("id" serial primary key, "email" character varying, "name" character varying, "password_digest" character varying, "auth_token" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160224161843"]]  (4.8ms) COMMIT ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" ORDER BY "ar_internal_metadata"."key" ASC LIMIT $1 [["LIMIT", 1]]  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2016-03-25 11:46:51 UTC], ["updated_at", 2016-03-25 11:46:51 UTC]]  (0.4ms) COMMIT  (0.2ms) SELECT pg_advisory_unlock(2735718569030447490) ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'plotline_entries' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'plotline_entry_search_data' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (2.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'plotline_images' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname   (2.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete FROM pg_constraint c JOIN pg_class t1 ON c.conrelid = t1.oid JOIN pg_class t2 ON c.confrelid = t2.oid JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid JOIN pg_namespace t3 ON c.connamespace = t3.oid WHERE c.contype = 'f' AND t1.relname = 'plotline_users' AND t3.nspname = ANY (current_schemas(false)) ORDER BY c.conname  ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "plotline_entries" Fixture Insert (0.6ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 11:48:38.789485', '2016-03-25 11:48:38.789485', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.3ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:48:38.801244', '2016-03-25 11:48:38.801244', 980190962)  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 11:48:38 UTC], ["updated_at", 2016-03-25 11:48:38 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 11:48:38 UTC], ["updated_at", 2016-03-25 11:48:38 UTC]] SQL (1.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 11:48:38 UTC], ["updated_at", 2016-03-25 11:48:38 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:48:38 UTC], ["updated_at", 2016-03-25 11:48:38 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 11:48:38 UTC], ["updated_at", 2016-03-25 11:48:38 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 11:48:38 UTC], ["updated_at", 2016-03-25 11:48:38 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:48:38 UTC], ["updated_at", 2016-03-25 11:48:38 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 11:48:38 UTC], ["updated_at", 2016-03-25 11:48:38 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 11:48:38 UTC], ["updated_at", 2016-03-25 11:48:38 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:48:38 UTC], ["updated_at", 2016-03-25 11:48:38 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 11:48:38 UTC], ["updated_at", 2016-03-25 11:48:38 UTC]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 11:48:38 UTC], ["updated_at", 2016-03-25 11:48:38 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:48:38 UTC], ["updated_at", 2016-03-25 11:48:38 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 11:48:38 UTC], ["updated_at", 2016-03-25 11:48:38 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 11:48:38 UTC], ["updated_at", 2016-03-25 11:48:38 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834890]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 11:48:38 UTC], ["id", 822834890]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (3.7ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (10.2ms) Completed 500 Internal Server Error in 259ms (ActiveRecord: 0.0ms)  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (2.8ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.6ms) Completed 200 OK in 16ms (Views: 12.6ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (11.7ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.1ms) Completed 200 OK in 19ms (Views: 15.8ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.5ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 5ms (ActiveRecord: 0.9ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 11:49:22.988241', '2016-03-25 11:49:22.988241', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:49:22.998522', '2016-03-25 11:49:22.998522', 980190962)  (1.5ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (5.0ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (4.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.4ms) Completed 200 OK in 238ms (Views: 234.4ms | ActiveRecord: 0.3ms)  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (9.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.8ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.1ms) Completed 200 OK in 17ms (Views: 14.2ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 13ms (ActiveRecord: 0.9ms)  (0.5ms) SELECT COUNT(*) FROM "plotline_entries"  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:49:23 UTC], ["updated_at", 2016-03-25 11:49:23 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.8ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 11:49:23 UTC], ["updated_at", 2016-03-25 11:49:23 UTC]] SQL (2.6ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.6ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 11:49:23 UTC], ["updated_at", 2016-03-25 11:49:23 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:49:23 UTC], ["updated_at", 2016-03-25 11:49:23 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 11:49:23 UTC], ["updated_at", 2016-03-25 11:49:23 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 11:49:23 UTC], ["updated_at", 2016-03-25 11:49:23 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 11:49:23 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:49:23 UTC], ["updated_at", 2016-03-25 11:49:23 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 11:49:23 UTC], ["updated_at", 2016-03-25 11:49:23 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 11:49:23 UTC], ["updated_at", 2016-03-25 11:49:23 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:49:23 UTC], ["updated_at", 2016-03-25 11:49:23 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 11:49:23 UTC], ["updated_at", 2016-03-25 11:49:23 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 11:49:23 UTC], ["updated_at", 2016-03-25 11:49:23 UTC]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 11:49:23 UTC], ["updated_at", 2016-03-25 11:49:23 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 11:49:23 UTC], ["updated_at", 2016-03-25 11:49:23 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 11:49:23 UTC], ["updated_at", 2016-03-25 11:49:23 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (0.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 9ms (Views: 6.2ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.7ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 11:52:15.651110', '2016-03-25 11:52:15.651110', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:52:15.664084', '2016-03-25 11:52:15.664084', 980190962)  (1.8ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:52:15 UTC], ["updated_at", 2016-03-25 11:52:15 UTC]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 11:52:15 UTC], ["updated_at", 2016-03-25 11:52:15 UTC]] SQL (1.1ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 11:52:15 UTC], ["updated_at", 2016-03-25 11:52:15 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:52:15 UTC], ["updated_at", 2016-03-25 11:52:15 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 11:52:15 UTC], ["updated_at", 2016-03-25 11:52:15 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 11:52:15 UTC], ["updated_at", 2016-03-25 11:52:15 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 11:52:15 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:52:15 UTC], ["updated_at", 2016-03-25 11:52:15 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 11:52:15 UTC], ["updated_at", 2016-03-25 11:52:15 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 11:52:15 UTC], ["updated_at", 2016-03-25 11:52:15 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:52:15 UTC], ["updated_at", 2016-03-25 11:52:15 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 11:52:15 UTC], ["updated_at", 2016-03-25 11:52:15 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 11:52:15 UTC], ["updated_at", 2016-03-25 11:52:15 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.3ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 11:52:15 UTC], ["updated_at", 2016-03-25 11:52:15 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 11:52:15 UTC], ["updated_at", 2016-03-25 11:52:15 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 11:52:15 UTC], ["updated_at", 2016-03-25 11:52:15 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (3.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (5.2ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.4ms) Completed 200 OK in 239ms (Views: 236.8ms | ActiveRecord: 0.0ms)  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.4ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 5ms (ActiveRecord: 0.9ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (9.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.9ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.1ms) Completed 200 OK in 20ms (Views: 17.2ms | ActiveRecord: 0.2ms)  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (2.2ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 16ms (Views: 6.0ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 11:52:34.521082', '2016-03-25 11:52:34.521082', 822834886) Fixture Delete (0.2ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:52:34.532487', '2016-03-25 11:52:34.532487', 980190962)  (1.7ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (5.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (6.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.5ms) Completed 200 OK in 251ms (Views: 247.1ms | ActiveRecord: 0.3ms)  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (9.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.2ms) Completed 200 OK in 16ms (Views: 13.1ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (0.5ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.7ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:52:34 UTC], ["updated_at", 2016-03-25 11:52:34 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 11:52:34 UTC], ["updated_at", 2016-03-25 11:52:34 UTC]] SQL (1.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 11:52:34 UTC], ["updated_at", 2016-03-25 11:52:34 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:52:34 UTC], ["updated_at", 2016-03-25 11:52:34 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.5ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 11:52:34 UTC], ["updated_at", 2016-03-25 11:52:34 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 11:52:34 UTC], ["updated_at", 2016-03-25 11:52:34 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 11:52:35 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:52:35 UTC], ["updated_at", 2016-03-25 11:52:35 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 11:52:35 UTC], ["updated_at", 2016-03-25 11:52:35 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 11:52:35 UTC], ["updated_at", 2016-03-25 11:52:35 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:52:35 UTC], ["updated_at", 2016-03-25 11:52:35 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 11:52:35 UTC], ["updated_at", 2016-03-25 11:52:35 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 11:52:35 UTC], ["updated_at", 2016-03-25 11:52:35 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 BlogPost Load (0.9ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 11:52:35 UTC], ["updated_at", 2016-03-25 11:52:35 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 11:52:35 UTC], ["updated_at", 2016-03-25 11:52:35 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 11:52:35 UTC], ["updated_at", 2016-03-25 11:52:35 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 11:54:44.347495', '2016-03-25 11:54:44.347495', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:54:44.358778', '2016-03-25 11:54:44.358778', 980190962)  (1.7ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:54:44 UTC], ["updated_at", 2016-03-25 11:54:44 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 11:54:44 UTC], ["updated_at", 2016-03-25 11:54:44 UTC]] SQL (1.6ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 11:54:44 UTC], ["updated_at", 2016-03-25 11:54:44 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:54:44 UTC], ["updated_at", 2016-03-25 11:54:44 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 11:54:44 UTC], ["updated_at", 2016-03-25 11:54:44 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 11:54:44 UTC], ["updated_at", 2016-03-25 11:54:44 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 11:54:44 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:54:44 UTC], ["updated_at", 2016-03-25 11:54:44 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 11:54:44 UTC], ["updated_at", 2016-03-25 11:54:44 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 11:54:44 UTC], ["updated_at", 2016-03-25 11:54:44 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:54:44 UTC], ["updated_at", 2016-03-25 11:54:44 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 11:54:44 UTC], ["updated_at", 2016-03-25 11:54:44 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 11:54:44 UTC], ["updated_at", 2016-03-25 11:54:44 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 9ms (ActiveRecord: 0.9ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_3 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_4 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.2ms) SAVEPOINT active_record_4 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 11:54:44 UTC], ["updated_at", 2016-03-25 11:54:44 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 11:54:44 UTC], ["updated_at", 2016-03-25 11:54:44 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 11:54:44 UTC], ["updated_at", 2016-03-25 11:54:44 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (1.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (6.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.7ms) Completed 200 OK in 252ms (Views: 249.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 11:55:05.250750', '2016-03-25 11:55:05.250750', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:55:05.260983', '2016-03-25 11:55:05.260983', 980190962)  (1.4ms) COMMIT  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.2ms) COMMIT  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:55:05 UTC], ["updated_at", 2016-03-25 11:55:05 UTC]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 11:55:05 UTC], ["updated_at", 2016-03-25 11:55:05 UTC]] SQL (1.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 11:55:05 UTC], ["updated_at", 2016-03-25 11:55:05 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:55:05 UTC], ["updated_at", 2016-03-25 11:55:05 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 11:55:05 UTC], ["updated_at", 2016-03-25 11:55:05 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.5ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 11:55:05 UTC], ["updated_at", 2016-03-25 11:55:05 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 11:55:05 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:55:05 UTC], ["updated_at", 2016-03-25 11:55:05 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 11:55:05 UTC], ["updated_at", 2016-03-25 11:55:05 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 11:55:05 UTC], ["updated_at", 2016-03-25 11:55:05 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:55:05 UTC], ["updated_at", 2016-03-25 11:55:05 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 11:55:05 UTC], ["updated_at", 2016-03-25 11:55:05 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 11:55:05 UTC], ["updated_at", 2016-03-25 11:55:05 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (0.9ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (4.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (6.9ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.7ms) Completed 200 OK in 249ms (Views: 246.5ms | ActiveRecord: 0.0ms)  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 11:55:05 UTC], ["updated_at", 2016-03-25 11:55:05 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 11:55:05 UTC], ["updated_at", 2016-03-25 11:55:05 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 11:55:05 UTC], ["updated_at", 2016-03-25 11:55:05 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.5ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 5ms (ActiveRecord: 0.9ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (9.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.9ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.1ms) Completed 200 OK in 19ms (Views: 16.1ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (2.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (2.2ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 8.5ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 11:55:22.217447', '2016-03-25 11:55:22.217447', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:55:22.228720', '2016-03-25 11:55:22.228720', 980190962)  (1.7ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (3.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (4.8ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.6ms) Completed 200 OK in 245ms (Views: 242.7ms | ActiveRecord: 0.0ms)  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.7ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (3.9ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.8ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 18ms (Views: 10.6ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (9.8ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.5ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.1ms) Completed 200 OK in 18ms (Views: 14.5ms | ActiveRecord: 0.3ms)  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.4ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 5ms (ActiveRecord: 0.8ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.6ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 11:55:22 UTC], ["updated_at", 2016-03-25 11:55:22 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 11:55:22 UTC], ["updated_at", 2016-03-25 11:55:22 UTC]] SQL (1.1ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 11:55:22 UTC], ["updated_at", 2016-03-25 11:55:22 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:55:22 UTC], ["updated_at", 2016-03-25 11:55:22 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 11:55:22 UTC], ["updated_at", 2016-03-25 11:55:22 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 11:55:22 UTC], ["updated_at", 2016-03-25 11:55:22 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:55:22 UTC], ["updated_at", 2016-03-25 11:55:22 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 11:55:22 UTC], ["updated_at", 2016-03-25 11:55:22 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 11:55:22 UTC], ["updated_at", 2016-03-25 11:55:22 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 BlogPost Load (1.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.9ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.2ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:55:22 UTC], ["updated_at", 2016-03-25 11:55:22 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 11:55:22 UTC], ["updated_at", 2016-03-25 11:55:22 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 11:55:22 UTC], ["updated_at", 2016-03-25 11:55:22 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:55:22 UTC], ["updated_at", 2016-03-25 11:55:22 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 11:55:22 UTC], ["updated_at", 2016-03-25 11:55:22 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 11:55:22 UTC], ["updated_at", 2016-03-25 11:55:22 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834890]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 11:55:22 UTC], ["id", 822834890]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 11:55:27.281932', '2016-03-25 11:55:27.281932', 822834886) Fixture Delete (0.4ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:55:27.293796', '2016-03-25 11:55:27.293796', 980190962)  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 11:55:27 UTC], ["updated_at", 2016-03-25 11:55:27 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 11:55:27 UTC], ["updated_at", 2016-03-25 11:55:27 UTC]] SQL (1.1ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 11:55:27 UTC], ["updated_at", 2016-03-25 11:55:27 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (4.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (5.2ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.7ms) Completed 200 OK in 274ms (Views: 271.0ms | ActiveRecord: 0.0ms)  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (11.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 21ms (Views: 16.6ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 6ms (ActiveRecord: 0.9ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (2.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (2.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 8.0ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:55:27 UTC], ["updated_at", 2016-03-25 11:55:27 UTC]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 11:55:27 UTC], ["updated_at", 2016-03-25 11:55:27 UTC]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 11:55:27 UTC], ["updated_at", 2016-03-25 11:55:27 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:55:27 UTC], ["updated_at", 2016-03-25 11:55:27 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 11:55:27 UTC], ["updated_at", 2016-03-25 11:55:27 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 11:55:27 UTC], ["updated_at", 2016-03-25 11:55:27 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834888]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 11:55:27 UTC], ["id", 822834888]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:55:27 UTC], ["updated_at", 2016-03-25 11:55:27 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 11:55:27 UTC], ["updated_at", 2016-03-25 11:55:27 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 11:55:27 UTC], ["updated_at", 2016-03-25 11:55:27 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:55:27 UTC], ["updated_at", 2016-03-25 11:55:27 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 11:55:27 UTC], ["updated_at", 2016-03-25 11:55:27 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 11:55:27 UTC], ["updated_at", 2016-03-25 11:55:27 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_2 BlogPost Load (1.3ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 11:55:52.501925', '2016-03-25 11:55:52.501925', 822834886) Fixture Delete (0.2ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:55:52.512818', '2016-03-25 11:55:52.512818', 980190962)  (1.6ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.6ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 11:55:52 UTC], ["updated_at", 2016-03-25 11:55:52 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 11:55:52 UTC], ["updated_at", 2016-03-25 11:55:52 UTC]] SQL (1.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 11:55:52 UTC], ["updated_at", 2016-03-25 11:55:52 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (3.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (5.8ms) Completed 200 OK in 244ms (Views: 241.6ms | ActiveRecord: 0.0ms)  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:55:52 UTC], ["updated_at", 2016-03-25 11:55:52 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 11:55:52 UTC], ["updated_at", 2016-03-25 11:55:52 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 11:55:52 UTC], ["updated_at", 2016-03-25 11:55:52 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:55:52 UTC], ["updated_at", 2016-03-25 11:55:52 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 11:55:52 UTC], ["updated_at", 2016-03-25 11:55:52 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 11:55:52 UTC], ["updated_at", 2016-03-25 11:55:52 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 BlogPost Load (1.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.9ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:55:52 UTC], ["updated_at", 2016-03-25 11:55:52 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 11:55:52 UTC], ["updated_at", 2016-03-25 11:55:52 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 11:55:52 UTC], ["updated_at", 2016-03-25 11:55:52 UTC]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:55:52 UTC], ["updated_at", 2016-03-25 11:55:52 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 11:55:52 UTC], ["updated_at", 2016-03-25 11:55:52 UTC]] SQL (0.6ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 11:55:52 UTC], ["updated_at", 2016-03-25 11:55:52 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.5ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834890]]  (0.6ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 11:55:53 UTC], ["id", 822834890]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", "title"], ["LIMIT", 1]]  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.4ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 5ms (ActiveRecord: 0.8ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (2.7ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (2.3ms) Completed 200 OK in 14ms (Views: 10.0ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (11.9ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (3.7ms) Completed 200 OK in 22ms (Views: 18.4ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 11:56:05.966726', '2016-03-25 11:56:05.966726', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:56:05.978000', '2016-03-25 11:56:05.978000', 980190962)  (1.8ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (3.5ms) Completed 200 OK in 237ms (Views: 234.2ms | ActiveRecord: 0.0ms)  (0.2ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) SAVEPOINT active_record_2 SQL (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 11:56:06 UTC], ["updated_at", 2016-03-25 11:56:06 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 11:56:06 UTC], ["updated_at", 2016-03-25 11:56:06 UTC]] SQL (1.1ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 11:56:06 UTC], ["updated_at", 2016-03-25 11:56:06 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (8.7ms) Completed 200 OK in 15ms (Views: 12.4ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_2 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (3.0ms) Completed 200 OK in 10ms (Views: 5.4ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:56:06 UTC], ["updated_at", 2016-03-25 11:56:06 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 11:56:06 UTC], ["updated_at", 2016-03-25 11:56:06 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 11:56:06 UTC], ["updated_at", 2016-03-25 11:56:06 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:56:06 UTC], ["updated_at", 2016-03-25 11:56:06 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 11:56:06 UTC], ["updated_at", 2016-03-25 11:56:06 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 11:56:06 UTC], ["updated_at", 2016-03-25 11:56:06 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 BlogPost Load (1.1ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:56:06 UTC], ["updated_at", 2016-03-25 11:56:06 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 11:56:06 UTC], ["updated_at", 2016-03-25 11:56:06 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 11:56:06 UTC], ["updated_at", 2016-03-25 11:56:06 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:56:06 UTC], ["updated_at", 2016-03-25 11:56:06 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 11:56:06 UTC], ["updated_at", 2016-03-25 11:56:06 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 11:56:06 UTC], ["updated_at", 2016-03-25 11:56:06 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834890]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 11:56:06 UTC], ["id", 822834890]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 11:56:20.688471', '2016-03-25 11:56:20.688471', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:56:20.699644', '2016-03-25 11:56:20.699644', 980190962)  (1.6ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (3.2ms) Completed 200 OK in 232ms (Views: 229.8ms | ActiveRecord: 0.0ms)  (0.1ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.2ms) SAVEPOINT active_record_2 SQL (0.6ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:56:21 UTC], ["updated_at", 2016-03-25 11:56:21 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 11:56:21 UTC], ["updated_at", 2016-03-25 11:56:21 UTC]] SQL (1.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.5ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 11:56:21 UTC], ["updated_at", 2016-03-25 11:56:21 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:56:21 UTC], ["updated_at", 2016-03-25 11:56:21 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 11:56:21 UTC], ["updated_at", 2016-03-25 11:56:21 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 11:56:21 UTC], ["updated_at", 2016-03-25 11:56:21 UTC]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 BlogPost Load (1.1ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:56:21 UTC], ["updated_at", 2016-03-25 11:56:21 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 11:56:21 UTC], ["updated_at", 2016-03-25 11:56:21 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 11:56:21 UTC], ["updated_at", 2016-03-25 11:56:21 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:56:21 UTC], ["updated_at", 2016-03-25 11:56:21 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 11:56:21 UTC], ["updated_at", 2016-03-25 11:56:21 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 11:56:21 UTC], ["updated_at", 2016-03-25 11:56:21 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834889]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 11:56:21 UTC], ["id", 822834889]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (7.3ms) Completed 200 OK in 13ms (Views: 10.6ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (2.1ms) Completed 200 OK in 8ms (Views: 4.3ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 11:56:21 UTC], ["updated_at", 2016-03-25 11:56:21 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 11:56:21 UTC], ["updated_at", 2016-03-25 11:56:21 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 11:56:21 UTC], ["updated_at", 2016-03-25 11:56:21 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 11:56:41.911348', '2016-03-25 11:56:41.911348', 822834886) Fixture Delete (0.2ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:56:41.922454', '2016-03-25 11:56:41.922454', 980190962)  (1.6ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:56:41 UTC], ["updated_at", 2016-03-25 11:56:41 UTC]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.5ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 11:56:41 UTC], ["updated_at", 2016-03-25 11:56:41 UTC]] SQL (1.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 11:56:41 UTC], ["updated_at", 2016-03-25 11:56:41 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:56:41 UTC], ["updated_at", 2016-03-25 11:56:41 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 11:56:41 UTC], ["updated_at", 2016-03-25 11:56:41 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 11:56:41 UTC], ["updated_at", 2016-03-25 11:56:41 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 11:56:42 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:56:42 UTC], ["updated_at", 2016-03-25 11:56:42 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 11:56:42 UTC], ["updated_at", 2016-03-25 11:56:42 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 11:56:42 UTC], ["updated_at", 2016-03-25 11:56:42 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:56:42 UTC], ["updated_at", 2016-03-25 11:56:42 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 11:56:42 UTC], ["updated_at", 2016-03-25 11:56:42 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 11:56:42 UTC], ["updated_at", 2016-03-25 11:56:42 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (4.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (6.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.7ms) Completed 200 OK in 242ms (Views: 239.7ms | ActiveRecord: 0.0ms)  (0.2ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 11:56:42 UTC], ["updated_at", 2016-03-25 11:56:42 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 11:56:42 UTC], ["updated_at", 2016-03-25 11:56:42 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 11:56:42 UTC], ["updated_at", 2016-03-25 11:56:42 UTC]] SQL (2.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.2ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 6ms (ActiveRecord: 1.1ms)  (0.3ms) SELECT COUNT(*) FROM "plotline_entries"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (3.0ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 14ms (Views: 9.6ms | ActiveRecord: 0.3ms)  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (11.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 18ms (Views: 15.8ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 11:56:53.440215', '2016-03-25 11:56:53.440215', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 11:56:53.450998', '2016-03-25 11:56:53.450998', 980190962)  (1.7ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:56:53 UTC], ["updated_at", 2016-03-25 11:56:53 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 11:56:53 UTC], ["updated_at", 2016-03-25 11:56:53 UTC]] SQL (1.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 11:56:53 UTC], ["updated_at", 2016-03-25 11:56:53 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:56:53 UTC], ["updated_at", 2016-03-25 11:56:53 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 11:56:53 UTC], ["updated_at", 2016-03-25 11:56:53 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 11:56:53 UTC], ["updated_at", 2016-03-25 11:56:53 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 11:56:53 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 11:56:53 UTC], ["updated_at", 2016-03-25 11:56:53 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 11:56:53 UTC], ["updated_at", 2016-03-25 11:56:53 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 11:56:53 UTC], ["updated_at", 2016-03-25 11:56:53 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 11:56:53 UTC], ["updated_at", 2016-03-25 11:56:53 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 11:56:53 UTC], ["updated_at", 2016-03-25 11:56:53 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 11:56:53 UTC], ["updated_at", 2016-03-25 11:56:53 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 11:56:53 UTC], ["updated_at", 2016-03-25 11:56:53 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 11:56:53 UTC], ["updated_at", 2016-03-25 11:56:53 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 11:56:53 UTC], ["updated_at", 2016-03-25 11:56:53 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (4.0ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (7.5ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.7ms) Completed 200 OK in 267ms (Views: 264.2ms | ActiveRecord: 0.0ms)  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 5ms (ActiveRecord: 0.8ms)  (0.3ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (10.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (10.0ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.1ms) Completed 200 OK in 29ms (Views: 25.7ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (3.2ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (2.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 8.7ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "plotline_entries" Fixture Insert (0.6ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:05:32.988100', '2016-03-25 12:05:32.988100', 822834886) Fixture Delete (0.4ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:05:33.000182', '2016-03-25 12:05:33.000182', 980190962)  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.3ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:05:33 UTC], ["updated_at", 2016-03-25 12:05:33 UTC]] Plotline::EntrySearchData Load (0.6ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.5ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:05:33 UTC], ["updated_at", 2016-03-25 12:05:33 UTC]] SQL (1.6ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:05:33 UTC], ["updated_at", 2016-03-25 12:05:33 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:05:33 UTC], ["updated_at", 2016-03-25 12:05:33 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:05:33 UTC], ["updated_at", 2016-03-25 12:05:33 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:05:33 UTC], ["updated_at", 2016-03-25 12:05:33 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:05:33 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:05:33 UTC], ["updated_at", 2016-03-25 12:05:33 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:05:33 UTC], ["updated_at", 2016-03-25 12:05:33 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:05:33 UTC], ["updated_at", 2016-03-25 12:05:33 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:05:33 UTC], ["updated_at", 2016-03-25 12:05:33 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:05:33 UTC], ["updated_at", 2016-03-25 12:05:33 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:05:33 UTC], ["updated_at", 2016-03-25 12:05:33 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (5.0ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (7.2ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.7ms) Completed 200 OK in 259ms (Views: 254.9ms | ActiveRecord: 0.3ms)  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (10.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.5ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 18ms (Views: 14.7ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 10ms (ActiveRecord: 0.9ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (0.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:05:33 UTC], ["updated_at", 2016-03-25 12:05:33 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:05:33 UTC], ["updated_at", 2016-03-25 12:05:33 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:05:33 UTC], ["updated_at", 2016-03-25 12:05:33 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:08:12.392772', '2016-03-25 12:08:12.392772', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:08:12.404122', '2016-03-25 12:08:12.404122', 980190962)  (1.6ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (3.2ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (5.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.4ms) Completed 200 OK in 241ms (Views: 238.8ms | ActiveRecord: 0.0ms)  (0.2ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.2ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:08:12 UTC], ["updated_at", 2016-03-25 12:08:12 UTC]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:08:12 UTC], ["updated_at", 2016-03-25 12:08:12 UTC]] SQL (3.1ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:08:12 UTC], ["updated_at", 2016-03-25 12:08:12 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:08:12 UTC], ["updated_at", 2016-03-25 12:08:12 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:08:12 UTC], ["updated_at", 2016-03-25 12:08:12 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.5ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:08:12 UTC], ["updated_at", 2016-03-25 12:08:12 UTC]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.3ms) RELEASE SAVEPOINT active_record_2  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:08:12 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:08:12 UTC], ["updated_at", 2016-03-25 12:08:12 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:08:12 UTC], ["updated_at", 2016-03-25 12:08:12 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:08:12 UTC], ["updated_at", 2016-03-25 12:08:12 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:08:12 UTC], ["updated_at", 2016-03-25 12:08:12 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:08:12 UTC], ["updated_at", 2016-03-25 12:08:12 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:08:12 UTC], ["updated_at", 2016-03-25 12:08:12 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 BlogPost Load (1.3ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.9ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:08:12 UTC], ["updated_at", 2016-03-25 12:08:12 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:08:12 UTC], ["updated_at", 2016-03-25 12:08:12 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:08:12 UTC], ["updated_at", 2016-03-25 12:08:12 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (9.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (0.8ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.1ms) Completed 200 OK in 17ms (Views: 13.8ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (2.7ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 6.6ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 3ms (ActiveRecord: 0.7ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:08:36.510123', '2016-03-25 12:08:36.510123', 822834886) Fixture Delete (0.4ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:08:36.521384', '2016-03-25 12:08:36.521384', 980190962)  (1.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (10.9ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (6.8ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.8ms) Completed 200 OK in 247ms (Views: 243.6ms | ActiveRecord: 0.3ms)  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.2ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 5ms (ActiveRecord: 0.8ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (3.0ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (2.0ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 11ms (Views: 7.4ms | ActiveRecord: 0.2ms)  (0.6ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.7ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:08:36 UTC], ["updated_at", 2016-03-25 12:08:36 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.5ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:08:36 UTC], ["updated_at", 2016-03-25 12:08:36 UTC]] SQL (1.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:08:36 UTC], ["updated_at", 2016-03-25 12:08:36 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:08:36 UTC], ["updated_at", 2016-03-25 12:08:36 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:08:36 UTC], ["updated_at", 2016-03-25 12:08:36 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:08:36 UTC], ["updated_at", 2016-03-25 12:08:36 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:08:36 UTC], ["updated_at", 2016-03-25 12:08:36 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:08:36 UTC], ["updated_at", 2016-03-25 12:08:36 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:08:37 UTC], ["updated_at", 2016-03-25 12:08:37 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834888]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:08:37 UTC], ["id", 822834888]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", "title"], ["LIMIT", 1]]  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:08:37 UTC], ["updated_at", 2016-03-25 12:08:37 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:08:37 UTC], ["updated_at", 2016-03-25 12:08:37 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:08:37 UTC], ["updated_at", 2016-03-25 12:08:37 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:08:37 UTC], ["updated_at", 2016-03-25 12:08:37 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:08:37 UTC], ["updated_at", 2016-03-25 12:08:37 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:08:37 UTC], ["updated_at", 2016-03-25 12:08:37 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 BlogPost Load (0.9ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (0.5ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.5ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:10:12.049989', '2016-03-25 12:10:12.049989', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:10:12.060882', '2016-03-25 12:10:12.060882', 980190962)  (1.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:10:12 UTC], ["updated_at", 2016-03-25 12:10:12 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:10:12 UTC], ["updated_at", 2016-03-25 12:10:12 UTC]] SQL (1.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:10:12 UTC], ["updated_at", 2016-03-25 12:10:12 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM "plotline_entries"  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_2 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_3 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_4 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:10:12 UTC], ["updated_at", 2016-03-25 12:10:12 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:10:12 UTC], ["updated_at", 2016-03-25 12:10:12 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:10:12 UTC], ["updated_at", 2016-03-25 12:10:12 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.1ms) SAVEPOINT active_record_5 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:10:12 UTC], ["updated_at", 2016-03-25 12:10:12 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:10:12 UTC], ["updated_at", 2016-03-25 12:10:12 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:10:12 UTC], ["updated_at", 2016-03-25 12:10:12 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834888]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_5 SQL (0.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:10:12 UTC], ["id", 822834888]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5 Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:10:12 UTC], ["updated_at", 2016-03-25 12:10:12 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:10:12 UTC], ["updated_at", 2016-03-25 12:10:12 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:10:12 UTC], ["updated_at", 2016-03-25 12:10:12 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.1ms) SAVEPOINT active_record_5 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:10:12 UTC], ["updated_at", 2016-03-25 12:10:12 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:10:12 UTC], ["updated_at", 2016-03-25 12:10:12 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:10:12 UTC], ["updated_at", 2016-03-25 12:10:12 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (1.5ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (6.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.7ms) Completed 200 OK in 254ms (Views: 251.9ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK TO SAVEPOINT active_record_4 ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:10:22.841003', '2016-03-25 12:10:22.841003', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:10:22.854030', '2016-03-25 12:10:22.854030', 980190962)  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:10:22 UTC], ["updated_at", 2016-03-25 12:10:22 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:10:22 UTC], ["updated_at", 2016-03-25 12:10:22 UTC]] SQL (1.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:10:22 UTC], ["updated_at", 2016-03-25 12:10:22 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:10:22 UTC], ["updated_at", 2016-03-25 12:10:22 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:10:22 UTC], ["updated_at", 2016-03-25 12:10:22 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:10:22 UTC], ["updated_at", 2016-03-25 12:10:22 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:10:22 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:10:22 UTC], ["updated_at", 2016-03-25 12:10:22 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:10:22 UTC], ["updated_at", 2016-03-25 12:10:22 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:10:22 UTC], ["updated_at", 2016-03-25 12:10:22 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:10:22 UTC], ["updated_at", 2016-03-25 12:10:22 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:10:22 UTC], ["updated_at", 2016-03-25 12:10:22 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:10:22 UTC], ["updated_at", 2016-03-25 12:10:22 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.2ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:10:23 UTC], ["updated_at", 2016-03-25 12:10:23 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:10:23 UTC], ["updated_at", 2016-03-25 12:10:23 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:10:23 UTC], ["updated_at", 2016-03-25 12:10:23 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 8ms (ActiveRecord: 0.8ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_3 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_4 -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (1.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (6.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.8ms) Completed 200 OK in 257ms (Views: 255.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "plotline_entries" Fixture Insert (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:10:34.285025', '2016-03-25 12:10:34.285025', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:10:34.296860', '2016-03-25 12:10:34.296860', 980190962)  (1.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:10:34 UTC], ["updated_at", 2016-03-25 12:10:34 UTC]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:10:34 UTC], ["updated_at", 2016-03-25 12:10:34 UTC]] SQL (1.1ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:10:34 UTC], ["updated_at", 2016-03-25 12:10:34 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:10:34 UTC], ["updated_at", 2016-03-25 12:10:34 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:10:34 UTC], ["updated_at", 2016-03-25 12:10:34 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:10:34 UTC], ["updated_at", 2016-03-25 12:10:34 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.2ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:10:34 UTC], ["updated_at", 2016-03-25 12:10:34 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:10:34 UTC], ["updated_at", 2016-03-25 12:10:34 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:10:34 UTC], ["updated_at", 2016-03-25 12:10:34 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:10:34 UTC], ["updated_at", 2016-03-25 12:10:34 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:10:34 UTC], ["updated_at", 2016-03-25 12:10:34 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:10:34 UTC], ["updated_at", 2016-03-25 12:10:34 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834889]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:10:34 UTC], ["id", 822834889]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.1ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:10:34 UTC], ["updated_at", 2016-03-25 12:10:34 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:10:34 UTC], ["updated_at", 2016-03-25 12:10:34 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:10:34 UTC], ["updated_at", 2016-03-25 12:10:34 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (6.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (5.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.4ms) Completed 200 OK in 279ms (Views: 273.9ms | ActiveRecord: 0.0ms)  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 5ms (ActiveRecord: 0.9ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (8.8ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 19ms (Views: 15.4ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (2.1ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (3.8ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (3.0ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.1ms) Completed 200 OK in 21ms (Views: 10.4ms | ActiveRecord: 0.3ms)  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:11:00.444427', '2016-03-25 12:11:00.444427', 822834886) Fixture Delete (0.2ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:11:00.455266', '2016-03-25 12:11:00.455266', 980190962)  (1.6ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.5ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 7ms (ActiveRecord: 0.9ms)  (0.3ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_3 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_4 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) SAVEPOINT active_record_5 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:11:00 UTC], ["updated_at", 2016-03-25 12:11:00 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:11:00 UTC], ["updated_at", 2016-03-25 12:11:00 UTC]] SQL (1.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:11:00 UTC], ["updated_at", 2016-03-25 12:11:00 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.2ms) SAVEPOINT active_record_4 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.2ms) SAVEPOINT active_record_5 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:11:00 UTC], ["updated_at", 2016-03-25 12:11:00 UTC]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.5ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:11:00 UTC], ["updated_at", 2016-03-25 12:11:00 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:11:00 UTC], ["updated_at", 2016-03-25 12:11:00 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.1ms) SAVEPOINT active_record_5 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:11:00 UTC], ["updated_at", 2016-03-25 12:11:00 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:11:00 UTC], ["updated_at", 2016-03-25 12:11:00 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:11:00 UTC], ["updated_at", 2016-03-25 12:11:00 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834888]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:11:00 UTC], ["id", 822834888]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_5 Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.2ms) SAVEPOINT active_record_5 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:11:00 UTC], ["updated_at", 2016-03-25 12:11:00 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:11:00 UTC], ["updated_at", 2016-03-25 12:11:00 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:11:00 UTC], ["updated_at", 2016-03-25 12:11:00 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.1ms) SAVEPOINT active_record_5 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:11:00 UTC], ["updated_at", 2016-03-25 12:11:00 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:11:00 UTC], ["updated_at", 2016-03-25 12:11:00 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:11:00 UTC], ["updated_at", 2016-03-25 12:11:00 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (1.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (6.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.7ms) Completed 200 OK in 262ms (Views: 259.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:11:06.711114', '2016-03-25 12:11:06.711114', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:11:06.721852', '2016-03-25 12:11:06.721852', 980190962)  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (5.0ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (5.0ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.4ms) Completed 200 OK in 238ms (Views: 234.6ms | ActiveRecord: 0.3ms)  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (9.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 17ms (Views: 13.7ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 5ms (ActiveRecord: 0.9ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:11:07 UTC], ["updated_at", 2016-03-25 12:11:07 UTC]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:11:07 UTC], ["updated_at", 2016-03-25 12:11:07 UTC]] SQL (1.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:11:07 UTC], ["updated_at", 2016-03-25 12:11:07 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:11:07 UTC], ["updated_at", 2016-03-25 12:11:07 UTC]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:11:07 UTC], ["updated_at", 2016-03-25 12:11:07 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:11:07 UTC], ["updated_at", 2016-03-25 12:11:07 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:11:07 UTC], ["updated_at", 2016-03-25 12:11:07 UTC]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:11:07 UTC], ["updated_at", 2016-03-25 12:11:07 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:11:07 UTC], ["updated_at", 2016-03-25 12:11:07 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834888]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:11:07 UTC], ["id", 822834888]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:11:07 UTC], ["updated_at", 2016-03-25 12:11:07 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:11:07 UTC], ["updated_at", 2016-03-25 12:11:07 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:11:07 UTC], ["updated_at", 2016-03-25 12:11:07 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:11:07 UTC], ["updated_at", 2016-03-25 12:11:07 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:11:07 UTC], ["updated_at", 2016-03-25 12:11:07 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:11:07 UTC], ["updated_at", 2016-03-25 12:11:07 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (0.5ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.7ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:13:02.669356', '2016-03-25 12:13:02.669356', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:13:02.680735', '2016-03-25 12:13:02.680735', 980190962)  (1.7ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (4.9ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (5.9ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.5ms) Completed 200 OK in 3473ms (Views: 3469.6ms | ActiveRecord: 0.3ms)  (0.3ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (7.7ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 14ms (Views: 10.9ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (0.3ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.6ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:13:06 UTC], ["updated_at", 2016-03-25 12:13:06 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:13:06 UTC], ["updated_at", 2016-03-25 12:13:06 UTC]] SQL (1.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:13:06 UTC], ["updated_at", 2016-03-25 12:13:06 UTC]] SQL (0.6ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (0.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 9ms (Views: 6.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:13:06 UTC], ["updated_at", 2016-03-25 12:13:06 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:13:06 UTC], ["updated_at", 2016-03-25 12:13:06 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:13:06 UTC], ["updated_at", 2016-03-25 12:13:06 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:13:06 UTC], ["updated_at", 2016-03-25 12:13:06 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:13:06 UTC], ["updated_at", 2016-03-25 12:13:06 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:13:06 UTC], ["updated_at", 2016-03-25 12:13:06 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 BlogPost Load (1.1ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.2ms) SAVEPOINT active_record_2 SQL (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:13:06 UTC], ["updated_at", 2016-03-25 12:13:06 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:13:06 UTC], ["updated_at", 2016-03-25 12:13:06 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:13:06 UTC], ["updated_at", 2016-03-25 12:13:06 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:13:06 UTC], ["updated_at", 2016-03-25 12:13:06 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:13:06 UTC], ["updated_at", 2016-03-25 12:13:06 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:13:06 UTC], ["updated_at", 2016-03-25 12:13:06 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834890]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) SAVEPOINT active_record_2 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:13:06 UTC], ["id", 822834890]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:14:03.263699', '2016-03-25 12:14:03.263699', 822834886) Fixture Delete (0.4ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:14:03.275461', '2016-03-25 12:14:03.275461', 980190962)  (1.5ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (4.5ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (6.2ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.5ms) Completed 200 OK in 263ms (Views: 259.7ms | ActiveRecord: 0.0ms)  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (2.0ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 10ms (Views: 7.1ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (7.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (3.5ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 12.9ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 5ms (ActiveRecord: 0.9ms)  (0.4ms) SELECT COUNT(*) FROM "plotline_entries"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:14:03 UTC], ["updated_at", 2016-03-25 12:14:03 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:14:03 UTC], ["updated_at", 2016-03-25 12:14:03 UTC]] SQL (1.6ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:14:03 UTC], ["updated_at", 2016-03-25 12:14:03 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:14:03 UTC], ["updated_at", 2016-03-25 12:14:03 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:14:03 UTC], ["updated_at", 2016-03-25 12:14:03 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:14:03 UTC], ["updated_at", 2016-03-25 12:14:03 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:14:03 UTC], ["updated_at", 2016-03-25 12:14:03 UTC]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:14:03 UTC], ["updated_at", 2016-03-25 12:14:03 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:14:03 UTC], ["updated_at", 2016-03-25 12:14:03 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834888]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:14:03 UTC], ["id", 822834888]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:14:03 UTC], ["updated_at", 2016-03-25 12:14:03 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:14:03 UTC], ["updated_at", 2016-03-25 12:14:03 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:14:03 UTC], ["updated_at", 2016-03-25 12:14:03 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:14:03 UTC], ["updated_at", 2016-03-25 12:14:03 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:14:03 UTC], ["updated_at", 2016-03-25 12:14:03 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:14:03 UTC], ["updated_at", 2016-03-25 12:14:03 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "plotline_entries" Fixture Insert (0.6ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:14:24.525630', '2016-03-25 12:14:24.525630', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:14:24.539436', '2016-03-25 12:14:24.539436', 980190962)  (1.5ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:14:24 UTC], ["updated_at", 2016-03-25 12:14:24 UTC]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:14:24 UTC], ["updated_at", 2016-03-25 12:14:24 UTC]] SQL (1.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:14:24 UTC], ["updated_at", 2016-03-25 12:14:24 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:14:24 UTC], ["updated_at", 2016-03-25 12:14:24 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:14:24 UTC], ["updated_at", 2016-03-25 12:14:24 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:14:24 UTC], ["updated_at", 2016-03-25 12:14:24 UTC]] SQL (0.7ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:14:24 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:14:24 UTC], ["updated_at", 2016-03-25 12:14:24 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:14:24 UTC], ["updated_at", 2016-03-25 12:14:24 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:14:24 UTC], ["updated_at", 2016-03-25 12:14:24 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:14:24 UTC], ["updated_at", 2016-03-25 12:14:24 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:14:24 UTC], ["updated_at", 2016-03-25 12:14:24 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:14:24 UTC], ["updated_at", 2016-03-25 12:14:24 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.3ms)  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (13.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (5.0ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.4ms) Completed 200 OK in 270ms (Views: 267.6ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:14:25 UTC], ["updated_at", 2016-03-25 12:14:25 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:14:25 UTC], ["updated_at", 2016-03-25 12:14:25 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:14:25 UTC], ["updated_at", 2016-03-25 12:14:25 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (0.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:14:40.477951', '2016-03-25 12:14:40.477951', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:14:40.488262', '2016-03-25 12:14:40.488262', 980190962)  (1.6ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:14:40 UTC], ["updated_at", 2016-03-25 12:14:40 UTC]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:14:40 UTC], ["updated_at", 2016-03-25 12:14:40 UTC]] SQL (1.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:14:40 UTC], ["updated_at", 2016-03-25 12:14:40 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (3.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (6.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.4ms) Completed 200 OK in 258ms (Views: 256.1ms | ActiveRecord: 0.0ms)  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:14:40 UTC], ["updated_at", 2016-03-25 12:14:40 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:14:40 UTC], ["updated_at", 2016-03-25 12:14:40 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:14:40 UTC], ["updated_at", 2016-03-25 12:14:40 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:14:40 UTC], ["updated_at", 2016-03-25 12:14:40 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:14:40 UTC], ["updated_at", 2016-03-25 12:14:40 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:14:40 UTC], ["updated_at", 2016-03-25 12:14:40 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834888]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:14:40 UTC], ["id", 822834888]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:14:40 UTC], ["updated_at", 2016-03-25 12:14:40 UTC]] Plotline::EntrySearchData Load (1.9ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:14:40 UTC], ["updated_at", 2016-03-25 12:14:40 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:14:40 UTC], ["updated_at", 2016-03-25 12:14:40 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.3ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:14:40 UTC], ["updated_at", 2016-03-25 12:14:40 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:14:40 UTC], ["updated_at", 2016-03-25 12:14:40 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:14:40 UTC], ["updated_at", 2016-03-25 12:14:40 UTC]] SQL (0.6ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 BlogPost Load (1.2ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.8ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.8ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (29.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.1ms) Completed 200 OK in 38ms (Views: 35.6ms | ActiveRecord: 0.2ms)  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (3.0ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.9ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 7.9ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:14:58.346703', '2016-03-25 12:14:58.346703', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:14:58.357980', '2016-03-25 12:14:58.357980', 980190962)  (0.7ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:14:58 UTC], ["updated_at", 2016-03-25 12:14:58 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:14:58 UTC], ["updated_at", 2016-03-25 12:14:58 UTC]] SQL (1.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:14:58 UTC], ["updated_at", 2016-03-25 12:14:58 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_3 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_4 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:14:58 UTC], ["updated_at", 2016-03-25 12:14:58 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:14:58 UTC], ["updated_at", 2016-03-25 12:14:58 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:14:58 UTC], ["updated_at", 2016-03-25 12:14:58 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.1ms) SAVEPOINT active_record_5 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:14:58 UTC], ["updated_at", 2016-03-25 12:14:58 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:14:58 UTC], ["updated_at", 2016-03-25 12:14:58 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:14:58 UTC], ["updated_at", 2016-03-25 12:14:58 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834888]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_5 SQL (0.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:14:58 UTC], ["id", 822834888]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:14:58 UTC], ["updated_at", 2016-03-25 12:14:58 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:14:58 UTC], ["updated_at", 2016-03-25 12:14:58 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:14:58 UTC], ["updated_at", 2016-03-25 12:14:58 UTC]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_5  (0.1ms) SAVEPOINT active_record_5 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:14:58 UTC], ["updated_at", 2016-03-25 12:14:58 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:14:58 UTC], ["updated_at", 2016-03-25 12:14:58 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:14:58 UTC], ["updated_at", 2016-03-25 12:14:58 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5 BlogPost Load (0.9ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.8ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_4 ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:15:07.960611', '2016-03-25 12:15:07.960611', 822834886) Fixture Delete (0.4ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:15:07.970540', '2016-03-25 12:15:07.970540', 980190962)  (1.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.4ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 8ms (ActiveRecord: 1.2ms)  (0.3ms) SELECT COUNT(*) FROM "plotline_entries"  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_2 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_3 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_4 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_5 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:15:08 UTC], ["updated_at", 2016-03-25 12:15:08 UTC]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:15:08 UTC], ["updated_at", 2016-03-25 12:15:08 UTC]] SQL (1.1ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:15:08 UTC], ["updated_at", 2016-03-25 12:15:08 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_5  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:15:08 UTC], ["updated_at", 2016-03-25 12:15:08 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:15:08 UTC], ["updated_at", 2016-03-25 12:15:08 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:15:08 UTC], ["updated_at", 2016-03-25 12:15:08 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:15:08 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_5 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:15:08 UTC], ["updated_at", 2016-03-25 12:15:08 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:15:08 UTC], ["updated_at", 2016-03-25 12:15:08 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:15:08 UTC], ["updated_at", 2016-03-25 12:15:08 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:15:08 UTC], ["updated_at", 2016-03-25 12:15:08 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:15:08 UTC], ["updated_at", 2016-03-25 12:15:08 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:15:08 UTC], ["updated_at", 2016-03-25 12:15:08 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5 BlogPost Load (1.9ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_4  (0.2ms) SAVEPOINT active_record_4 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:15:08 UTC], ["updated_at", 2016-03-25 12:15:08 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:15:08 UTC], ["updated_at", 2016-03-25 12:15:08 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:15:08 UTC], ["updated_at", 2016-03-25 12:15:08 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (1.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (4.0ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.4ms) Completed 200 OK in 268ms (Views: 265.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_4 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.6ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:16:24.436641', '2016-03-25 12:16:24.436641', 822834886) Fixture Delete (0.2ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:16:24.449455', '2016-03-25 12:16:24.449455', 980190962)  (1.7ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:16:24 UTC], ["updated_at", 2016-03-25 12:16:24 UTC]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:16:24 UTC], ["updated_at", 2016-03-25 12:16:24 UTC]] SQL (1.1ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:16:24 UTC], ["updated_at", 2016-03-25 12:16:24 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:16:24 UTC], ["updated_at", 2016-03-25 12:16:24 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:16:24 UTC], ["updated_at", 2016-03-25 12:16:24 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:16:24 UTC], ["updated_at", 2016-03-25 12:16:24 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:16:24 UTC], ["updated_at", 2016-03-25 12:16:24 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:16:24 UTC], ["updated_at", 2016-03-25 12:16:24 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:16:24 UTC], ["updated_at", 2016-03-25 12:16:24 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834888]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:16:24 UTC], ["id", 822834888]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:16:24 UTC], ["updated_at", 2016-03-25 12:16:24 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:16:24 UTC], ["updated_at", 2016-03-25 12:16:24 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:16:24 UTC], ["updated_at", 2016-03-25 12:16:24 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:16:24 UTC], ["updated_at", 2016-03-25 12:16:24 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:16:24 UTC], ["updated_at", 2016-03-25 12:16:24 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:16:24 UTC], ["updated_at", 2016-03-25 12:16:24 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.2ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (3.6ms) Completed 200 OK in 13ms (Views: 10.5ms | ActiveRecord: 0.0ms)  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (8.6ms) Completed 200 OK in 14ms (Views: 10.9ms | ActiveRecord: 0.2ms)  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (5.0ms) Completed 200 OK in 9ms (Views: 5.5ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "plotline_entries" Fixture Insert (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:16:29.994112', '2016-03-25 12:16:29.994112', 822834886) Fixture Delete (0.2ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:16:30.007167', '2016-03-25 12:16:30.007167', 980190962)  (1.7ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (4.8ms) Completed 200 OK in 15ms (Views: 11.6ms | ActiveRecord: 0.3ms)  (0.3ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (8.8ms) Completed 200 OK in 13ms (Views: 9.1ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:16:30 UTC], ["updated_at", 2016-03-25 12:16:30 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:16:30 UTC], ["updated_at", 2016-03-25 12:16:30 UTC]] SQL (1.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:16:30 UTC], ["updated_at", 2016-03-25 12:16:30 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:16:30 UTC], ["updated_at", 2016-03-25 12:16:30 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:16:30 UTC], ["updated_at", 2016-03-25 12:16:30 UTC]] SQL (0.6ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:16:30 UTC], ["updated_at", 2016-03-25 12:16:30 UTC]] SQL (0.7ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.5ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:16:30 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:16:30 UTC], ["updated_at", 2016-03-25 12:16:30 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:16:30 UTC], ["updated_at", 2016-03-25 12:16:30 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:16:30 UTC], ["updated_at", 2016-03-25 12:16:30 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:16:30 UTC], ["updated_at", 2016-03-25 12:16:30 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:16:30 UTC], ["updated_at", 2016-03-25 12:16:30 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:16:30 UTC], ["updated_at", 2016-03-25 12:16:30 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 BlogPost Load (1.2ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:16:30 UTC], ["updated_at", 2016-03-25 12:16:30 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:16:30 UTC], ["updated_at", 2016-03-25 12:16:30 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:16:30 UTC], ["updated_at", 2016-03-25 12:16:30 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (0.5ms) Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "plotline_entries" Fixture Insert (0.6ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:16:45.859092', '2016-03-25 12:16:45.859092', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:16:45.870345', '2016-03-25 12:16:45.870345', 980190962)  (1.5ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:16:45 UTC], ["updated_at", 2016-03-25 12:16:45 UTC]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:16:45 UTC], ["updated_at", 2016-03-25 12:16:45 UTC]] SQL (1.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:16:45 UTC], ["updated_at", 2016-03-25 12:16:45 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:16:45 UTC], ["updated_at", 2016-03-25 12:16:45 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:16:45 UTC], ["updated_at", 2016-03-25 12:16:45 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:16:45 UTC], ["updated_at", 2016-03-25 12:16:45 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:16:45 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:16:45 UTC], ["updated_at", 2016-03-25 12:16:45 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:16:45 UTC], ["updated_at", 2016-03-25 12:16:45 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:16:45 UTC], ["updated_at", 2016-03-25 12:16:45 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:16:45 UTC], ["updated_at", 2016-03-25 12:16:45 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:16:45 UTC], ["updated_at", 2016-03-25 12:16:45 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:16:45 UTC], ["updated_at", 2016-03-25 12:16:45 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (7.0ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (6.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.4ms) Completed 200 OK in 271ms (Views: 266.6ms | ActiveRecord: 0.3ms)  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (6.9ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 13ms (Views: 9.9ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (0.3ms) SELECT COUNT(*) FROM "plotline_entries"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (0.5ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.2ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:16:46 UTC], ["updated_at", 2016-03-25 12:16:46 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:16:46 UTC], ["updated_at", 2016-03-25 12:16:46 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.6ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:16:46 UTC], ["updated_at", 2016-03-25 12:16:46 UTC]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:19:07.578298', '2016-03-25 12:19:07.578298', 822834886) Fixture Delete (0.2ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:19:07.589811', '2016-03-25 12:19:07.589811', 980190962)  (6.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (6.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (6.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.5ms) Completed 200 OK in 262ms (Views: 259.0ms | ActiveRecord: 0.0ms)  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:19:07 UTC], ["updated_at", 2016-03-25 12:19:07 UTC]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:19:07 UTC], ["updated_at", 2016-03-25 12:19:07 UTC]] SQL (1.7ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:19:07 UTC], ["updated_at", 2016-03-25 12:19:07 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:19:07 UTC], ["updated_at", 2016-03-25 12:19:07 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:19:07 UTC], ["updated_at", 2016-03-25 12:19:07 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.6ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:19:07 UTC], ["updated_at", 2016-03-25 12:19:07 UTC]] SQL (0.8ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 BlogPost Load (1.1ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:19:08 UTC], ["updated_at", 2016-03-25 12:19:08 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:19:08 UTC], ["updated_at", 2016-03-25 12:19:08 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:19:08 UTC], ["updated_at", 2016-03-25 12:19:08 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:19:08 UTC], ["updated_at", 2016-03-25 12:19:08 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:19:08 UTC], ["updated_at", 2016-03-25 12:19:08 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:19:08 UTC], ["updated_at", 2016-03-25 12:19:08 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834889]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:19:08 UTC], ["id", 822834889]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:19:08 UTC], ["updated_at", 2016-03-25 12:19:08 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.5ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:19:08 UTC], ["updated_at", 2016-03-25 12:19:08 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:19:08 UTC], ["updated_at", 2016-03-25 12:19:08 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (9.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.2ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 17ms (Views: 14.7ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (0.3ms) SELECT COUNT(*) FROM "plotline_entries"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (2.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.2ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 9ms (Views: 5.4ms | ActiveRecord: 0.2ms)  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.2ms) COMMIT  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:20:03.156968', '2016-03-25 12:20:03.156968', 822834886) Fixture Delete (0.2ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:20:03.169637', '2016-03-25 12:20:03.169637', 980190962)  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:20:03 UTC], ["updated_at", 2016-03-25 12:20:03 UTC]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:20:03 UTC], ["updated_at", 2016-03-25 12:20:03 UTC]] SQL (1.1ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:20:03 UTC], ["updated_at", 2016-03-25 12:20:03 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:20:03 UTC], ["updated_at", 2016-03-25 12:20:03 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:20:03 UTC], ["updated_at", 2016-03-25 12:20:03 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:20:03 UTC], ["updated_at", 2016-03-25 12:20:03 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:20:03 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:20:03 UTC], ["updated_at", 2016-03-25 12:20:03 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:20:03 UTC], ["updated_at", 2016-03-25 12:20:03 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:20:03 UTC], ["updated_at", 2016-03-25 12:20:03 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:20:03 UTC], ["updated_at", 2016-03-25 12:20:03 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:20:03 UTC], ["updated_at", 2016-03-25 12:20:03 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:20:03 UTC], ["updated_at", 2016-03-25 12:20:03 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.2ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:20:03 UTC], ["updated_at", 2016-03-25 12:20:03 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:20:03 UTC], ["updated_at", 2016-03-25 12:20:03 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:20:03 UTC], ["updated_at", 2016-03-25 12:20:03 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (3.8ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (4.9ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.4ms) Completed 200 OK in 249ms (Views: 247.2ms | ActiveRecord: 0.0ms)  (0.1ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (1.9ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.2ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 10ms (Views: 6.9ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (10.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.2ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 17ms (Views: 13.6ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:20:09.639390', '2016-03-25 12:20:09.639390', 822834886) Fixture Delete (0.2ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:20:09.652738', '2016-03-25 12:20:09.652738', 980190962)  (1.5ms) COMMIT  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:20:09 UTC], ["updated_at", 2016-03-25 12:20:09 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.6ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:20:09 UTC], ["updated_at", 2016-03-25 12:20:09 UTC]] SQL (1.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:20:09 UTC], ["updated_at", 2016-03-25 12:20:09 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:20:09 UTC], ["updated_at", 2016-03-25 12:20:09 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:20:09 UTC], ["updated_at", 2016-03-25 12:20:09 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:20:09 UTC], ["updated_at", 2016-03-25 12:20:09 UTC]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:20:09 UTC], ["updated_at", 2016-03-25 12:20:09 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:20:09 UTC], ["updated_at", 2016-03-25 12:20:09 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:20:09 UTC], ["updated_at", 2016-03-25 12:20:09 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:20:09 UTC], ["updated_at", 2016-03-25 12:20:09 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:20:09 UTC], ["updated_at", 2016-03-25 12:20:09 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:20:09 UTC], ["updated_at", 2016-03-25 12:20:09 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834889]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:20:09 UTC], ["id", 822834889]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:20:09 UTC], ["updated_at", 2016-03-25 12:20:09 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:20:09 UTC], ["updated_at", 2016-03-25 12:20:09 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:20:09 UTC], ["updated_at", 2016-03-25 12:20:09 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:20:16.158958', '2016-03-25 12:20:16.158958', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:20:16.171493', '2016-03-25 12:20:16.171493', 980190962)  (1.7ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (3.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (5.9ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.5ms) Completed 200 OK in 251ms (Views: 249.2ms | ActiveRecord: 0.0ms)  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:20:16 UTC], ["updated_at", 2016-03-25 12:20:16 UTC]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:20:16 UTC], ["updated_at", 2016-03-25 12:20:16 UTC]] SQL (1.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:20:16 UTC], ["updated_at", 2016-03-25 12:20:16 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:20:16 UTC], ["updated_at", 2016-03-25 12:20:16 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:20:16 UTC], ["updated_at", 2016-03-25 12:20:16 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:20:16 UTC], ["updated_at", 2016-03-25 12:20:16 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:20:16 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:20:16 UTC], ["updated_at", 2016-03-25 12:20:16 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:20:16 UTC], ["updated_at", 2016-03-25 12:20:16 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:20:16 UTC], ["updated_at", 2016-03-25 12:20:16 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:20:16 UTC], ["updated_at", 2016-03-25 12:20:16 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:20:16 UTC], ["updated_at", 2016-03-25 12:20:16 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:20:16 UTC], ["updated_at", 2016-03-25 12:20:16 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:20:16 UTC], ["updated_at", 2016-03-25 12:20:16 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:20:16 UTC], ["updated_at", 2016-03-25 12:20:16 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:20:16 UTC], ["updated_at", 2016-03-25 12:20:16 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (2.7ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.8ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 12ms (Views: 9.0ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (8.0ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.2ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 14ms (Views: 11.5ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (0.3ms) SELECT COUNT(*) FROM "plotline_entries"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:20:39.778299', '2016-03-25 12:20:39.778299', 822834886) Fixture Delete (0.2ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:20:39.790988', '2016-03-25 12:20:39.790988', 980190962)  (1.6ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:20:39 UTC], ["updated_at", 2016-03-25 12:20:39 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.5ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:20:39 UTC], ["updated_at", 2016-03-25 12:20:39 UTC]] SQL (1.1ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:20:39 UTC], ["updated_at", 2016-03-25 12:20:39 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:20:39 UTC], ["updated_at", 2016-03-25 12:20:39 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:20:39 UTC], ["updated_at", 2016-03-25 12:20:39 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:20:39 UTC], ["updated_at", 2016-03-25 12:20:39 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:20:39 UTC], ["updated_at", 2016-03-25 12:20:39 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:20:39 UTC], ["updated_at", 2016-03-25 12:20:39 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:20:39 UTC], ["updated_at", 2016-03-25 12:20:39 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834888]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:20:39 UTC], ["id", 822834888]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:20:39 UTC], ["updated_at", 2016-03-25 12:20:39 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:20:39 UTC], ["updated_at", 2016-03-25 12:20:39 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:20:39 UTC], ["updated_at", 2016-03-25 12:20:39 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:20:39 UTC], ["updated_at", 2016-03-25 12:20:39 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:20:39 UTC], ["updated_at", 2016-03-25 12:20:39 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:20:39 UTC], ["updated_at", 2016-03-25 12:20:39 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (3.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (3.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.4ms) Completed 200 OK in 267ms (Views: 264.7ms | ActiveRecord: 0.0ms)  (0.2ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (2.7ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 9.3ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (9.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.8ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.1ms) Completed 200 OK in 19ms (Views: 14.9ms | ActiveRecord: 0.3ms)  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.2ms) BEGIN Fixture Delete (1.1ms) DELETE FROM "plotline_entries" Fixture Insert (0.7ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:21:29.401945', '2016-03-25 12:21:29.401945', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:21:29.417170', '2016-03-25 12:21:29.417170', 980190962)  (1.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (3.7ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (6.5ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.5ms) Completed 200 OK in 268ms (Views: 265.0ms | ActiveRecord: 0.0ms)  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.2ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:21:29 UTC], ["updated_at", 2016-03-25 12:21:29 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:21:29 UTC], ["updated_at", 2016-03-25 12:21:29 UTC]] SQL (4.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:21:29 UTC], ["updated_at", 2016-03-25 12:21:29 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:21:29 UTC], ["updated_at", 2016-03-25 12:21:29 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:21:29 UTC], ["updated_at", 2016-03-25 12:21:29 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:21:29 UTC], ["updated_at", 2016-03-25 12:21:29 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:21:29 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:21:29 UTC], ["updated_at", 2016-03-25 12:21:29 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:21:29 UTC], ["updated_at", 2016-03-25 12:21:29 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:21:29 UTC], ["updated_at", 2016-03-25 12:21:29 UTC]] SQL (0.6ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.3ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:21:29 UTC], ["updated_at", 2016-03-25 12:21:29 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:21:29 UTC], ["updated_at", 2016-03-25 12:21:29 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:21:29 UTC], ["updated_at", 2016-03-25 12:21:29 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:21:29 UTC], ["updated_at", 2016-03-25 12:21:29 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:21:29 UTC], ["updated_at", 2016-03-25 12:21:29 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:21:29 UTC], ["updated_at", 2016-03-25 12:21:29 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (8.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.2ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 13.6ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (2.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 9ms (Views: 5.6ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:21:33.730529', '2016-03-25 12:21:33.730529', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:21:33.740409', '2016-03-25 12:21:33.740409', 980190962)  (1.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (3.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (5.0ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.4ms) Completed 200 OK in 257ms (Views: 255.2ms | ActiveRecord: 0.0ms)  (0.1ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:21:34 UTC], ["updated_at", 2016-03-25 12:21:34 UTC]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:21:34 UTC], ["updated_at", 2016-03-25 12:21:34 UTC]] SQL (1.7ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:21:34 UTC], ["updated_at", 2016-03-25 12:21:34 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 5ms (ActiveRecord: 0.8ms)  (0.3ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (8.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 17ms (Views: 13.6ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (2.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 10ms (Views: 6.4ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:21:34 UTC], ["updated_at", 2016-03-25 12:21:34 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:21:34 UTC], ["updated_at", 2016-03-25 12:21:34 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:21:34 UTC], ["updated_at", 2016-03-25 12:21:34 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:21:34 UTC], ["updated_at", 2016-03-25 12:21:34 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:21:34 UTC], ["updated_at", 2016-03-25 12:21:34 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:21:34 UTC], ["updated_at", 2016-03-25 12:21:34 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834888]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:21:34 UTC], ["id", 822834888]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:21:34 UTC], ["updated_at", 2016-03-25 12:21:34 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:21:34 UTC], ["updated_at", 2016-03-25 12:21:34 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:21:34 UTC], ["updated_at", 2016-03-25 12:21:34 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:21:34 UTC], ["updated_at", 2016-03-25 12:21:34 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:21:34 UTC], ["updated_at", 2016-03-25 12:21:34 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:21:34 UTC], ["updated_at", 2016-03-25 12:21:34 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:21:42.305241', '2016-03-25 12:21:42.305241', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:21:42.315425', '2016-03-25 12:21:42.315425', 980190962)  (1.5ms) COMMIT  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:21:42 UTC], ["updated_at", 2016-03-25 12:21:42 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.5ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.8ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:21:42 UTC], ["updated_at", 2016-03-25 12:21:42 UTC]] SQL (2.0ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:21:42 UTC], ["updated_at", 2016-03-25 12:21:42 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:21:42 UTC], ["updated_at", 2016-03-25 12:21:42 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:21:42 UTC], ["updated_at", 2016-03-25 12:21:42 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:21:42 UTC], ["updated_at", 2016-03-25 12:21:42 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:21:42 UTC], ["updated_at", 2016-03-25 12:21:42 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:21:42 UTC], ["updated_at", 2016-03-25 12:21:42 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:21:42 UTC], ["updated_at", 2016-03-25 12:21:42 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:21:42 UTC], ["updated_at", 2016-03-25 12:21:42 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:21:42 UTC], ["updated_at", 2016-03-25 12:21:42 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:21:42 UTC], ["updated_at", 2016-03-25 12:21:42 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834889]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:21:42 UTC], ["id", 822834889]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.3ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_3 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_4 -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index --------------------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:21:42 UTC], ["updated_at", 2016-03-25 12:21:42 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:21:42 UTC], ["updated_at", 2016-03-25 12:21:42 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:21:42 UTC], ["updated_at", 2016-03-25 12:21:42 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:21:49.756675', '2016-03-25 12:21:49.756675', 822834886) Fixture Delete (0.2ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:21:49.767673', '2016-03-25 12:21:49.767673', 980190962)  (1.5ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:21:49 UTC], ["updated_at", 2016-03-25 12:21:49 UTC]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.5ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:21:49 UTC], ["updated_at", 2016-03-25 12:21:49 UTC]] SQL (1.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:21:49 UTC], ["updated_at", 2016-03-25 12:21:49 UTC]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:21:49 UTC], ["updated_at", 2016-03-25 12:21:49 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:21:49 UTC], ["updated_at", 2016-03-25 12:21:49 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:21:49 UTC], ["updated_at", 2016-03-25 12:21:49 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:21:49 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:21:49 UTC], ["updated_at", 2016-03-25 12:21:49 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:21:49 UTC], ["updated_at", 2016-03-25 12:21:49 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:21:49 UTC], ["updated_at", 2016-03-25 12:21:49 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:21:49 UTC], ["updated_at", 2016-03-25 12:21:49 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:21:49 UTC], ["updated_at", 2016-03-25 12:21:49 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:21:49 UTC], ["updated_at", 2016-03-25 12:21:49 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.8ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index --------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (7.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (4.2ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.5ms) Completed 200 OK in 264ms (Views: 260.3ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (7.8ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 14ms (Views: 11.6ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:21:50 UTC], ["updated_at", 2016-03-25 12:21:50 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:21:50 UTC], ["updated_at", 2016-03-25 12:21:50 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:21:50 UTC], ["updated_at", 2016-03-25 12:21:50 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:22:01.978841', '2016-03-25 12:22:01.978841', 822834886) Fixture Delete (0.2ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:22:01.990357', '2016-03-25 12:22:01.990357', 980190962)  (1.8ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 8ms (ActiveRecord: 0.9ms)  (0.3ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_3 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_4 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:22:02 UTC], ["updated_at", 2016-03-25 12:22:02 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:02 UTC], ["updated_at", 2016-03-25 12:22:02 UTC]] SQL (1.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:02 UTC], ["updated_at", 2016-03-25 12:22:02 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:22:02 UTC], ["updated_at", 2016-03-25 12:22:02 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:02 UTC], ["updated_at", 2016-03-25 12:22:02 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:02 UTC], ["updated_at", 2016-03-25 12:22:02 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_5 SQL (0.6ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:22:02 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5 Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.2ms) SAVEPOINT active_record_4 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:22:02 UTC], ["updated_at", 2016-03-25 12:22:02 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:02 UTC], ["updated_at", 2016-03-25 12:22:02 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:02 UTC], ["updated_at", 2016-03-25 12:22:02 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:22:02 UTC], ["updated_at", 2016-03-25 12:22:02 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:02 UTC], ["updated_at", 2016-03-25 12:22:02 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:02 UTC], ["updated_at", 2016-03-25 12:22:02 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index --------------------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:22:02 UTC], ["updated_at", 2016-03-25 12:22:02 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:02 UTC], ["updated_at", 2016-03-25 12:22:02 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:02 UTC], ["updated_at", 2016-03-25 12:22:02 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:22:05.225675', '2016-03-25 12:22:05.225675', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:22:05.235800', '2016-03-25 12:22:05.235800', 980190962)  (1.6ms) COMMIT  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:22:05 UTC], ["updated_at", 2016-03-25 12:22:05 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:05 UTC], ["updated_at", 2016-03-25 12:22:05 UTC]] SQL (1.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:05 UTC], ["updated_at", 2016-03-25 12:22:05 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:22:05 UTC], ["updated_at", 2016-03-25 12:22:05 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:05 UTC], ["updated_at", 2016-03-25 12:22:05 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:05 UTC], ["updated_at", 2016-03-25 12:22:05 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.1ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:22:05 UTC], ["updated_at", 2016-03-25 12:22:05 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:05 UTC], ["updated_at", 2016-03-25 12:22:05 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:05 UTC], ["updated_at", 2016-03-25 12:22:05 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:22:05 UTC], ["updated_at", 2016-03-25 12:22:05 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:05 UTC], ["updated_at", 2016-03-25 12:22:05 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:05 UTC], ["updated_at", 2016-03-25 12:22:05 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834889]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:22:05 UTC], ["id", 822834889]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:22:05 UTC], ["updated_at", 2016-03-25 12:22:05 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:05 UTC], ["updated_at", 2016-03-25 12:22:05 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:05 UTC], ["updated_at", 2016-03-25 12:22:05 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index --------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.5ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 7ms (ActiveRecord: 0.8ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (3.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (4.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.6ms) Completed 200 OK in 270ms (Views: 266.5ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (9.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.5ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 13.9ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:22:20.321156', '2016-03-25 12:22:20.321156', 822834886) Fixture Delete (0.2ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:22:20.331430', '2016-03-25 12:22:20.331430', 980190962)  (1.7ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:22:20 UTC], ["updated_at", 2016-03-25 12:22:20 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:20 UTC], ["updated_at", 2016-03-25 12:22:20 UTC]] SQL (1.1ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:20 UTC], ["updated_at", 2016-03-25 12:22:20 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:22:20 UTC], ["updated_at", 2016-03-25 12:22:20 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:20 UTC], ["updated_at", 2016-03-25 12:22:20 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:20 UTC], ["updated_at", 2016-03-25 12:22:20 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:22:20 UTC], ["updated_at", 2016-03-25 12:22:20 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:20 UTC], ["updated_at", 2016-03-25 12:22:20 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:20 UTC], ["updated_at", 2016-03-25 12:22:20 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834888]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:22:20 UTC], ["id", 822834888]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:22:20 UTC], ["updated_at", 2016-03-25 12:22:20 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:20 UTC], ["updated_at", 2016-03-25 12:22:20 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:20 UTC], ["updated_at", 2016-03-25 12:22:20 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:22:20 UTC], ["updated_at", 2016-03-25 12:22:20 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:20 UTC], ["updated_at", 2016-03-25 12:22:20 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:20 UTC], ["updated_at", 2016-03-25 12:22:20 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.4ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_3 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:22:23.879949', '2016-03-25 12:22:23.879949', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:22:23.890492', '2016-03-25 12:22:23.890492', 980190962)  (1.7ms) COMMIT  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.4ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 8ms (ActiveRecord: 1.0ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.1ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_3 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_4 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:22:24 UTC], ["updated_at", 2016-03-25 12:22:24 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:24 UTC], ["updated_at", 2016-03-25 12:22:24 UTC]] SQL (1.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:24 UTC], ["updated_at", 2016-03-25 12:22:24 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_4  (0.2ms) SAVEPOINT active_record_4 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_5 SQL (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:22:24 UTC], ["updated_at", 2016-03-25 12:22:24 UTC]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.6ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:24 UTC], ["updated_at", 2016-03-25 12:22:24 UTC]] SQL (0.6ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:24 UTC], ["updated_at", 2016-03-25 12:22:24 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:22:24 UTC], ["updated_at", 2016-03-25 12:22:24 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:24 UTC], ["updated_at", 2016-03-25 12:22:24 UTC]] SQL (0.7ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:24 UTC], ["updated_at", 2016-03-25 12:22:24 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.5ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834888]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) SAVEPOINT active_record_5 SQL (0.5ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:22:24 UTC], ["id", 822834888]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:22:24 UTC], ["updated_at", 2016-03-25 12:22:24 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:24 UTC], ["updated_at", 2016-03-25 12:22:24 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:24 UTC], ["updated_at", 2016-03-25 12:22:24 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.1ms) SAVEPOINT active_record_5 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:22:24 UTC], ["updated_at", 2016-03-25 12:22:24 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:24 UTC], ["updated_at", 2016-03-25 12:22:24 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:24 UTC], ["updated_at", 2016-03-25 12:22:24 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.8ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:22:27.633324', '2016-03-25 12:22:27.633324', 822834886) Fixture Delete (0.2ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:22:27.645672', '2016-03-25 12:22:27.645672', 980190962)  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:22:27 UTC], ["updated_at", 2016-03-25 12:22:27 UTC]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:27 UTC], ["updated_at", 2016-03-25 12:22:27 UTC]] SQL (1.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:27 UTC], ["updated_at", 2016-03-25 12:22:27 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 9ms (ActiveRecord: 0.8ms)  (0.3ms) SELECT COUNT(*) FROM "plotline_entries"  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_2 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_3 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_4 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:22:27 UTC], ["updated_at", 2016-03-25 12:22:27 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:27 UTC], ["updated_at", 2016-03-25 12:22:27 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:27 UTC], ["updated_at", 2016-03-25 12:22:27 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:22:27 UTC], ["updated_at", 2016-03-25 12:22:27 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:27 UTC], ["updated_at", 2016-03-25 12:22:27 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:27 UTC], ["updated_at", 2016-03-25 12:22:27 UTC]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834888]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:22:27 UTC], ["id", 822834888]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:22:27 UTC], ["updated_at", 2016-03-25 12:22:27 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.5ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:27 UTC], ["updated_at", 2016-03-25 12:22:27 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:27 UTC], ["updated_at", 2016-03-25 12:22:27 UTC]] SQL (0.6ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.1ms) SAVEPOINT active_record_5 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:22:27 UTC], ["updated_at", 2016-03-25 12:22:27 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:27 UTC], ["updated_at", 2016-03-25 12:22:27 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.5ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:27 UTC], ["updated_at", 2016-03-25 12:22:27 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.9ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.8ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', '2016-03-25 12:22:31.270380', '2016-03-25 12:22:31.270380', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:22:31.280540', '2016-03-25 12:22:31.280540', 980190962)  (1.7ms) COMMIT  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:22:31 UTC], ["updated_at", 2016-03-25 12:22:31 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:31 UTC], ["updated_at", 2016-03-25 12:22:31 UTC]] SQL (2.0ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:31 UTC], ["updated_at", 2016-03-25 12:22:31 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:22:31 UTC], ["updated_at", 2016-03-25 12:22:31 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:31 UTC], ["updated_at", 2016-03-25 12:22:31 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:31 UTC], ["updated_at", 2016-03-25 12:22:31 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:22:31 UTC], ["updated_at", 2016-03-25 12:22:31 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:31 UTC], ["updated_at", 2016-03-25 12:22:31 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:31 UTC], ["updated_at", 2016-03-25 12:22:31 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834888]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:22:31 UTC], ["id", 822834888]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:22:31 UTC], ["updated_at", 2016-03-25 12:22:31 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:31 UTC], ["updated_at", 2016-03-25 12:22:31 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:31 UTC], ["updated_at", 2016-03-25 12:22:31 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:22:31 UTC], ["updated_at", 2016-03-25 12:22:31 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:22:31 UTC], ["updated_at", 2016-03-25 12:22:31 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:22:31 UTC], ["updated_at", 2016-03-25 12:22:31 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_3 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 12:23:19.601204', '2016-03-25 12:23:19.601204', 822834886) Fixture Delete (0.2ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:23:19.613069', '2016-03-25 12:23:19.613069', 980190962)  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:23:19 UTC], ["updated_at", 2016-03-25 12:23:19 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:23:19 UTC], ["updated_at", 2016-03-25 12:23:19 UTC]] SQL (1.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:23:19 UTC], ["updated_at", 2016-03-25 12:23:19 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM "plotline_entries"  (0.3ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.5ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_2 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_3 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_4 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_5 SQL (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:23:19 UTC], ["updated_at", 2016-03-25 12:23:19 UTC]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:23:19 UTC], ["updated_at", 2016-03-25 12:23:19 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:23:19 UTC], ["updated_at", 2016-03-25 12:23:19 UTC]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:23:19 UTC], ["updated_at", 2016-03-25 12:23:19 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:23:19 UTC], ["updated_at", 2016-03-25 12:23:19 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.6ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.5ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:23:19 UTC], ["updated_at", 2016-03-25 12:23:19 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834888]]  (0.5ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.3ms) SAVEPOINT active_record_5 SQL (0.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:23:19 UTC], ["id", 822834888]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] SQL (0.6ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] SQL (0.7ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_5 Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:23:19 UTC], ["updated_at", 2016-03-25 12:23:19 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:23:19 UTC], ["updated_at", 2016-03-25 12:23:19 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.6ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:23:19 UTC], ["updated_at", 2016-03-25 12:23:19 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5  (0.1ms) SAVEPOINT active_record_5 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:23:19 UTC], ["updated_at", 2016-03-25 12:23:19 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:23:19 UTC], ["updated_at", 2016-03-25 12:23:19 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:23:19 UTC], ["updated_at", 2016-03-25 12:23:19 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_5 BlogPost Load (0.9ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK TO SAVEPOINT active_record_4  (0.1ms) SAVEPOINT active_record_4 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_4 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 12:25:32.410666', '2016-03-25 12:25:32.410666', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:25:32.424815', '2016-03-25 12:25:32.424815', 980190962)  (1.7ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.6ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (7.9ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (6.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.4ms) Completed 200 OK in 281ms (Views: 276.3ms | ActiveRecord: 0.6ms)  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (7.0ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.0ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM "plotline_entries"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:25:32 UTC], ["updated_at", 2016-03-25 12:25:32 UTC]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:25:32 UTC], ["updated_at", 2016-03-25 12:25:32 UTC]] SQL (1.1ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:25:32 UTC], ["updated_at", 2016-03-25 12:25:32 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:25:32 UTC], ["updated_at", 2016-03-25 12:25:32 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:25:32 UTC], ["updated_at", 2016-03-25 12:25:32 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:25:32 UTC], ["updated_at", 2016-03-25 12:25:32 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:25:32 UTC], ["updated_at", 2016-03-25 12:25:32 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:25:32 UTC], ["updated_at", 2016-03-25 12:25:32 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:25:32 UTC], ["updated_at", 2016-03-25 12:25:32 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834888]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:25:32 UTC], ["id", 822834888]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", "title"], ["LIMIT", 1]]  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:25:33 UTC], ["updated_at", 2016-03-25 12:25:33 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:25:33 UTC], ["updated_at", 2016-03-25 12:25:33 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:25:33 UTC], ["updated_at", 2016-03-25 12:25:33 UTC]] SQL (0.6ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:25:33 UTC], ["updated_at", 2016-03-25 12:25:33 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:25:33 UTC], ["updated_at", 2016-03-25 12:25:33 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:25:33 UTC], ["updated_at", 2016-03-25 12:25:33 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 BlogPost Load (1.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.8ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.8ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 12:25:44.624170', '2016-03-25 12:25:44.624170', 822834886) Fixture Delete (0.2ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:25:44.633931', '2016-03-25 12:25:44.633931', 980190962)  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:25:44 UTC], ["updated_at", 2016-03-25 12:25:44 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:25:44 UTC], ["updated_at", 2016-03-25 12:25:44 UTC]] SQL (2.0ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:25:44 UTC], ["updated_at", 2016-03-25 12:25:44 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:25:44 UTC], ["updated_at", 2016-03-25 12:25:44 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:25:44 UTC], ["updated_at", 2016-03-25 12:25:44 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:25:44 UTC], ["updated_at", 2016-03-25 12:25:44 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:25:44 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:25:44 UTC], ["updated_at", 2016-03-25 12:25:44 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:25:44 UTC], ["updated_at", 2016-03-25 12:25:44 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:25:44 UTC], ["updated_at", 2016-03-25 12:25:44 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:25:44 UTC], ["updated_at", 2016-03-25 12:25:44 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:25:44 UTC], ["updated_at", 2016-03-25 12:25:44 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:25:44 UTC], ["updated_at", 2016-03-25 12:25:44 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:25:44 UTC], ["updated_at", 2016-03-25 12:25:44 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:25:44 UTC], ["updated_at", 2016-03-25 12:25:44 UTC]] SQL (0.6ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:25:44 UTC], ["updated_at", 2016-03-25 12:25:44 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.0ms)  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (2.8ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (5.0ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.8ms) Completed 200 OK in 270ms (Views: 266.3ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_2 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 5ms (ActiveRecord: 0.9ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (9.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 16ms (Views: 13.0ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.1ms) BEGIN  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 12:28:32.016310', '2016-03-25 12:28:32.016310', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:28:32.029991', '2016-03-25 12:28:32.029991', 980190962)  (1.5ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.3ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:28:32 UTC], ["updated_at", 2016-03-25 12:28:32 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:28:32 UTC], ["updated_at", 2016-03-25 12:28:32 UTC]] SQL (1.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:28:32 UTC], ["updated_at", 2016-03-25 12:28:32 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 11ms (ActiveRecord: 0.0ms)  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (8.9ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (5.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.8ms) Completed 200 OK in 268ms (Views: 265.4ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 3ms (ActiveRecord: 0.7ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (1.9ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.8ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:28:32 UTC], ["updated_at", 2016-03-25 12:28:32 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:28:32 UTC], ["updated_at", 2016-03-25 12:28:32 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:28:32 UTC], ["updated_at", 2016-03-25 12:28:32 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:28:32 UTC], ["updated_at", 2016-03-25 12:28:32 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:28:32 UTC], ["updated_at", 2016-03-25 12:28:32 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:28:32 UTC], ["updated_at", 2016-03-25 12:28:32 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834888]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:28:32 UTC], ["id", 822834888]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:28:32 UTC], ["updated_at", 2016-03-25 12:28:32 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:28:32 UTC], ["updated_at", 2016-03-25 12:28:32 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:28:32 UTC], ["updated_at", 2016-03-25 12:28:32 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:28:32 UTC], ["updated_at", 2016-03-25 12:28:32 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:28:32 UTC], ["updated_at", 2016-03-25 12:28:32 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:28:32 UTC], ["updated_at", 2016-03-25 12:28:32 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 BlogPost Load (0.9ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 12:29:16.345835', '2016-03-25 12:29:16.345835', 822834886) Fixture Delete (0.3ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:29:16.355921', '2016-03-25 12:29:16.355921', 980190962)  (5.0ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:29:16 UTC], ["updated_at", 2016-03-25 12:29:16 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.9ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:29:16 UTC], ["updated_at", 2016-03-25 12:29:16 UTC]] SQL (1.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:29:16 UTC], ["updated_at", 2016-03-25 12:29:16 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:29:16 UTC], ["updated_at", 2016-03-25 12:29:16 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:29:16 UTC], ["updated_at", 2016-03-25 12:29:16 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:29:16 UTC], ["updated_at", 2016-03-25 12:29:16 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.1ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:29:16 UTC], ["updated_at", 2016-03-25 12:29:16 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:29:16 UTC], ["updated_at", 2016-03-25 12:29:16 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:29:16 UTC], ["updated_at", 2016-03-25 12:29:16 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:29:16 UTC], ["updated_at", 2016-03-25 12:29:16 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:29:16 UTC], ["updated_at", 2016-03-25 12:29:16 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:29:16 UTC], ["updated_at", 2016-03-25 12:29:16 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834889]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:29:16 UTC], ["id", 822834889]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (8.5ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (3.7ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.5ms) Completed 200 OK in 269ms (Views: 266.0ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.3ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (2.5ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 10ms (Views: 6.4ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:29:16 UTC], ["updated_at", 2016-03-25 12:29:16 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:29:16 UTC], ["updated_at", 2016-03-25 12:29:16 UTC]] SQL (0.7ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:29:16 UTC], ["updated_at", 2016-03-25 12:29:16 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.7ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 12:31:58.730479', '2016-03-25 12:31:58.730479', 822834886) Fixture Delete (0.2ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:31:58.744718', '2016-03-25 12:31:58.744718', 980190962)  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.5ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:31:58 UTC], ["updated_at", 2016-03-25 12:31:58 UTC]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.6ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:31:58 UTC], ["updated_at", 2016-03-25 12:31:58 UTC]] SQL (1.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:31:58 UTC], ["updated_at", 2016-03-25 12:31:58 UTC]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (14.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (3.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.7ms) Completed 200 OK in 290ms (Views: 286.9ms | ActiveRecord: 0.3ms)  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (2.2ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.0ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:31:59 UTC], ["updated_at", 2016-03-25 12:31:59 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:31:59 UTC], ["updated_at", 2016-03-25 12:31:59 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:31:59 UTC], ["updated_at", 2016-03-25 12:31:59 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:31:59 UTC], ["updated_at", 2016-03-25 12:31:59 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:31:59 UTC], ["updated_at", 2016-03-25 12:31:59 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:31:59 UTC], ["updated_at", 2016-03-25 12:31:59 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834888]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:31:59 UTC], ["id", 822834888]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.6ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:31:59 UTC], ["updated_at", 2016-03-25 12:31:59 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.5ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:31:59 UTC], ["updated_at", 2016-03-25 12:31:59 UTC]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:31:59 UTC], ["updated_at", 2016-03-25 12:31:59 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:31:59 UTC], ["updated_at", 2016-03-25 12:31:59 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:31:59 UTC], ["updated_at", 2016-03-25 12:31:59 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:31:59 UTC], ["updated_at", 2016-03-25 12:31:59 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 BlogPost Load (1.2ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.8ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 12:33:32.427549', '2016-03-25 12:33:32.427549', 822834886) Fixture Delete (0.2ms) DELETE FROM "plotline_users" Fixture Insert (0.2ms) INSERT INTO "plotline_users" ("email", "name", "password_digest", "auth_token", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', 'MyString', '2016-03-25 12:33:32.438900', '2016-03-25 12:33:32.438900', 980190962)  (1.6ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:33:32 UTC], ["updated_at", 2016-03-25 12:33:32 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:33:32 UTC], ["updated_at", 2016-03-25 12:33:32 UTC]] SQL (1.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:33:32 UTC], ["updated_at", 2016-03-25 12:33:32 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:33:32 UTC], ["updated_at", 2016-03-25 12:33:32 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:33:32 UTC], ["updated_at", 2016-03-25 12:33:32 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:33:32 UTC], ["updated_at", 2016-03-25 12:33:32 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:33:32 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:33:32 UTC], ["updated_at", 2016-03-25 12:33:32 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:33:32 UTC], ["updated_at", 2016-03-25 12:33:32 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:33:32 UTC], ["updated_at", 2016-03-25 12:33:32 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:33:32 UTC], ["updated_at", 2016-03-25 12:33:32 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:33:32 UTC], ["updated_at", 2016-03-25 12:33:32 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:33:32 UTC], ["updated_at", 2016-03-25 12:33:32 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (6.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (4.2ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.6ms) Completed 200 OK in 290ms (Views: 285.5ms | ActiveRecord: 0.3ms)  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (7.7ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 14ms (Views: 11.2ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:33:33 UTC], ["updated_at", 2016-03-25 12:33:33 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:33:33 UTC], ["updated_at", 2016-03-25 12:33:33 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:33:33 UTC], ["updated_at", 2016-03-25 12:33:33 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 12:34:34.190041', '2016-03-25 12:34:34.190041', 822834886)  (0.3ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:34:34 UTC], ["updated_at", 2016-03-25 12:34:34 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:34:34 UTC], ["updated_at", 2016-03-25 12:34:34 UTC]] SQL (1.6ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:34:34 UTC], ["updated_at", 2016-03-25 12:34:34 UTC]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:34:34 UTC], ["updated_at", 2016-03-25 12:34:34 UTC]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:34:34 UTC], ["updated_at", 2016-03-25 12:34:34 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:34:34 UTC], ["updated_at", 2016-03-25 12:34:34 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.1ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:34:34 UTC], ["updated_at", 2016-03-25 12:34:34 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:34:34 UTC], ["updated_at", 2016-03-25 12:34:34 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:34:34 UTC], ["updated_at", 2016-03-25 12:34:34 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:34:34 UTC], ["updated_at", 2016-03-25 12:34:34 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:34:34 UTC], ["updated_at", 2016-03-25 12:34:34 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:34:34 UTC], ["updated_at", 2016-03-25 12:34:34 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834889]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:34:34 UTC], ["id", 822834889]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.0ms)  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (9.0ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (5.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.4ms) Completed 200 OK in 261ms (Views: 258.2ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (2.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 5.6ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:34:34 UTC], ["updated_at", 2016-03-25 12:34:34 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:34:34 UTC], ["updated_at", 2016-03-25 12:34:34 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:34:34 UTC], ["updated_at", 2016-03-25 12:34:34 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 12:34:54.890434', '2016-03-25 12:34:54.890434', 822834886)  (1.7ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:34:54 UTC], ["updated_at", 2016-03-25 12:34:54 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:34:54 UTC], ["updated_at", 2016-03-25 12:34:54 UTC]] SQL (1.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.5ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:34:54 UTC], ["updated_at", 2016-03-25 12:34:54 UTC]] SQL (0.6ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:34:54 UTC], ["updated_at", 2016-03-25 12:34:54 UTC]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:34:54 UTC], ["updated_at", 2016-03-25 12:34:54 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:34:54 UTC], ["updated_at", 2016-03-25 12:34:54 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:34:54 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:34:54 UTC], ["updated_at", 2016-03-25 12:34:54 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:34:55 UTC], ["updated_at", 2016-03-25 12:34:55 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.6ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:34:55 UTC], ["updated_at", 2016-03-25 12:34:55 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:34:55 UTC], ["updated_at", 2016-03-25 12:34:55 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:34:55 UTC], ["updated_at", 2016-03-25 12:34:55 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:34:55 UTC], ["updated_at", 2016-03-25 12:34:55 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:34:55 UTC], ["updated_at", 2016-03-25 12:34:55 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:34:55 UTC], ["updated_at", 2016-03-25 12:34:55 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:34:55 UTC], ["updated_at", 2016-03-25 12:34:55 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (6.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (3.9ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.6ms) Completed 200 OK in 280ms (Views: 276.1ms | ActiveRecord: 0.3ms)  (0.3ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.5ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (10.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.1ms) Completed 200 OK in 17ms (Views: 14.1ms | ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 12:35:15.445161', '2016-03-25 12:35:15.445161', 822834886)  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:35:15 UTC], ["updated_at", 2016-03-25 12:35:15 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:35:15 UTC], ["updated_at", 2016-03-25 12:35:15 UTC]] SQL (1.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:35:15 UTC], ["updated_at", 2016-03-25 12:35:15 UTC]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:35:15 UTC], ["updated_at", 2016-03-25 12:35:15 UTC]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:35:15 UTC], ["updated_at", 2016-03-25 12:35:15 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:35:15 UTC], ["updated_at", 2016-03-25 12:35:15 UTC]] SQL (0.6ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:35:15 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:35:15 UTC], ["updated_at", 2016-03-25 12:35:15 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:35:15 UTC], ["updated_at", 2016-03-25 12:35:15 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:35:15 UTC], ["updated_at", 2016-03-25 12:35:15 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:35:15 UTC], ["updated_at", 2016-03-25 12:35:15 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:35:15 UTC], ["updated_at", 2016-03-25 12:35:15 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:35:15 UTC], ["updated_at", 2016-03-25 12:35:15 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:35:15 UTC], ["updated_at", 2016-03-25 12:35:15 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:35:15 UTC], ["updated_at", 2016-03-25 12:35:15 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:35:15 UTC], ["updated_at", 2016-03-25 12:35:15 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_3 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.7ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 12:35:43.520253', '2016-03-25 12:35:43.520253', 822834886)  (1.7ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:35:43 UTC], ["updated_at", 2016-03-25 12:35:43 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:35:43 UTC], ["updated_at", 2016-03-25 12:35:43 UTC]] SQL (1.1ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:35:43 UTC], ["updated_at", 2016-03-25 12:35:43 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:35:43 UTC], ["updated_at", 2016-03-25 12:35:43 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:35:43 UTC], ["updated_at", 2016-03-25 12:35:43 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:35:43 UTC], ["updated_at", 2016-03-25 12:35:43 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:35:43 UTC], ["updated_at", 2016-03-25 12:35:43 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:35:43 UTC], ["updated_at", 2016-03-25 12:35:43 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:35:43 UTC], ["updated_at", 2016-03-25 12:35:43 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834888]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:35:43 UTC], ["id", 822834888]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:35:43 UTC], ["updated_at", 2016-03-25 12:35:43 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:35:43 UTC], ["updated_at", 2016-03-25 12:35:43 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:35:43 UTC], ["updated_at", 2016-03-25 12:35:43 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:35:43 UTC], ["updated_at", 2016-03-25 12:35:43 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:35:43 UTC], ["updated_at", 2016-03-25 12:35:43 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:35:43 UTC], ["updated_at", 2016-03-25 12:35:43 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (5.5ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (4.0ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.5ms) Completed 200 OK in 290ms (Views: 286.2ms | ActiveRecord: 0.3ms)  (0.2ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (8.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 12.5ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 12:35:50.965298', '2016-03-25 12:35:50.965298', 822834886)  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:35:51 UTC], ["updated_at", 2016-03-25 12:35:51 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.5ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.7ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:35:51 UTC], ["updated_at", 2016-03-25 12:35:51 UTC]] SQL (2.1ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.6ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:35:51 UTC], ["updated_at", 2016-03-25 12:35:51 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Entry Exists (0.4ms) SELECT 1 AS one FROM "plotline_entries" WHERE "plotline_entries"."slug" = $1 AND ("plotline_entries"."id" != $2) AND "plotline_entries"."type" = $3 LIMIT $4 [["slug", "hello-world"], ["id", 822834886], ["type", "BlogPost"], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 10ms (ActiveRecord: 0.0ms)  (0.2ms) SAVEPOINT active_record_1 ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Entry Exists (0.2ms) SELECT 1 AS one FROM "plotline_entries" WHERE "plotline_entries"."slug" = $1 AND ("plotline_entries"."id" != $2) AND "plotline_entries"."type" = $3 LIMIT $4 [["slug", "hello-world"], ["id", 822834886], ["type", "BlogPost"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_2 SQL (0.4ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 5ms (ActiveRecord: 0.8ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Entry Exists (0.3ms) SELECT 1 AS one FROM "plotline_entries" WHERE "plotline_entries"."slug" = $1 AND ("plotline_entries"."id" != $2) AND "plotline_entries"."type" = $3 LIMIT $4 [["slug", "hello-world"], ["id", 822834886], ["type", "BlogPost"], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (10.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (4.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.5ms) Completed 200 OK in 275ms (Views: 272.2ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Entry Exists (0.2ms) SELECT 1 AS one FROM "plotline_entries" WHERE "plotline_entries"."slug" = $1 AND ("plotline_entries"."id" != $2) AND "plotline_entries"."type" = $3 LIMIT $4 [["slug", "hello-world"], ["id", 822834886], ["type", "BlogPost"], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (2.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 9ms (Views: 5.4ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:35:51 UTC], ["updated_at", 2016-03-25 12:35:51 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:35:51 UTC], ["updated_at", 2016-03-25 12:35:51 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:35:51 UTC], ["updated_at", 2016-03-25 12:35:51 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:35:51 UTC], ["updated_at", 2016-03-25 12:35:51 UTC]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:35:51 UTC], ["updated_at", 2016-03-25 12:35:51 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:35:51 UTC], ["updated_at", 2016-03-25 12:35:51 UTC]] SQL (0.6ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834888]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:35:51 UTC], ["id", 822834888]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:35:51 UTC], ["updated_at", 2016-03-25 12:35:51 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:35:51 UTC], ["updated_at", 2016-03-25 12:35:51 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:35:51 UTC], ["updated_at", 2016-03-25 12:35:51 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:35:51 UTC], ["updated_at", 2016-03-25 12:35:51 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:35:51 UTC], ["updated_at", 2016-03-25 12:35:51 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:35:51 UTC], ["updated_at", 2016-03-25 12:35:51 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_2 BlogPost Load (1.0ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ------------------------ PlotlineTest: test_truth ------------------------  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 12:36:58.689511', '2016-03-25 12:36:58.689511', 822834886)  (1.7ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Entry Exists (0.7ms) SELECT 1 AS one FROM "plotline_entries" WHERE "plotline_entries"."slug" = $1 AND ("plotline_entries"."id" != $2) AND "plotline_entries"."type" = $3 LIMIT $4 [["slug", "hello-world"], ["id", 822834886], ["type", "BlogPost"], ["LIMIT", 1]]  (0.4ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 9ms (ActiveRecord: 1.0ms)  (0.3ms) SELECT COUNT(*) FROM "plotline_entries"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Entry Exists (0.4ms) SELECT 1 AS one FROM "plotline_entries" WHERE "plotline_entries"."slug" = $1 AND ("plotline_entries"."id" != $2) AND "plotline_entries"."type" = $3 LIMIT $4 [["slug", "hello-world"], ["id", 822834886], ["type", "BlogPost"], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (3.2ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (5.5ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.5ms) Completed 200 OK in 274ms (Views: 270.3ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Entry Exists (0.3ms) SELECT 1 AS one FROM "plotline_entries" WHERE "plotline_entries"."slug" = $1 AND ("plotline_entries"."id" != $2) AND "plotline_entries"."type" = $3 LIMIT $4 [["slug", "hello-world"], ["id", 822834886], ["type", "BlogPost"], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (7.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.1ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 13ms (Views: 10.2ms | ActiveRecord: 0.2ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Entry Exists (0.3ms) SELECT 1 AS one FROM "plotline_entries" WHERE "plotline_entries"."slug" = $1 AND ("plotline_entries"."id" != $2) AND "plotline_entries"."type" = $3 LIMIT $4 [["slug", "hello-world"], ["id", 822834886], ["type", "BlogPost"], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:36:59 UTC], ["updated_at", 2016-03-25 12:36:59 UTC]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:36:59 UTC], ["updated_at", 2016-03-25 12:36:59 UTC]] SQL (1.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:36:59 UTC], ["updated_at", 2016-03-25 12:36:59 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:36:59 UTC], ["updated_at", 2016-03-25 12:36:59 UTC]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:36:59 UTC], ["updated_at", 2016-03-25 12:36:59 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:36:59 UTC], ["updated_at", 2016-03-25 12:36:59 UTC]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.2ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.8ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:36:59 UTC], ["updated_at", 2016-03-25 12:36:59 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:36:59 UTC], ["updated_at", 2016-03-25 12:36:59 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:36:59 UTC], ["updated_at", 2016-03-25 12:36:59 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:36:59 UTC], ["updated_at", 2016-03-25 12:36:59 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:36:59 UTC], ["updated_at", 2016-03-25 12:36:59 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:36:59 UTC], ["updated_at", 2016-03-25 12:36:59 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834889]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:36:59 UTC], ["id", 822834889]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:36:59 UTC], ["updated_at", 2016-03-25 12:36:59 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:36:59 UTC], ["updated_at", 2016-03-25 12:36:59 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:36:59 UTC], ["updated_at", 2016-03-25 12:36:59 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "plotline_entries" Fixture Insert (0.6ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 12:37:07.917361', '2016-03-25 12:37:07.917361', 822834886)  (0.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.5ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (16.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (5.7ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.8ms) Completed 200 OK in 302ms (Views: 298.0ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.4ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (2.5ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 11ms (Views: 6.5ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 12:37:08 UTC], ["updated_at", 2016-03-25 12:37:08 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.6ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 12:37:08 UTC], ["updated_at", 2016-03-25 12:37:08 UTC]] SQL (1.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 12:37:08 UTC], ["updated_at", 2016-03-25 12:37:08 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:37:08 UTC], ["updated_at", 2016-03-25 12:37:08 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 12:37:08 UTC], ["updated_at", 2016-03-25 12:37:08 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 12:37:08 UTC], ["updated_at", 2016-03-25 12:37:08 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:37:08 UTC], ["updated_at", 2016-03-25 12:37:08 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 12:37:08 UTC], ["updated_at", 2016-03-25 12:37:08 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 12:37:08 UTC], ["updated_at", 2016-03-25 12:37:08 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834888]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 12:37:08 UTC], ["id", 822834888]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 12:37:08 UTC], ["updated_at", 2016-03-25 12:37:08 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 12:37:08 UTC], ["updated_at", 2016-03-25 12:37:08 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 12:37:08 UTC], ["updated_at", 2016-03-25 12:37:08 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 12:37:08 UTC], ["updated_at", 2016-03-25 12:37:08 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 12:37:08 UTC], ["updated_at", 2016-03-25 12:37:08 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 12:37:08 UTC], ["updated_at", 2016-03-25 12:37:08 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.1ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published. ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 12:49:22.540110', '2016-03-25 12:49:22.540110', 822834886)  (2.0ms) COMMIT  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ------------------------------------------------- Plotline::CustomMarkownParserTest: test_something -------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 12:59:24.876846', '2016-03-25 12:59:24.876846', 822834886)  (1.9ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ----------------------------------------------------- Plotline::CustomMarkownParserTest: test_custom_parser -----------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 12:59:55.157915', '2016-03-25 12:59:55.157915', 822834886)  (1.9ms) COMMIT  (0.2ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ----------------------------------------------------- Plotline::CustomMarkownParserTest: test_custom_parser -----------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.1ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 13:00:28.502551', '2016-03-25 13:00:28.502551', 822834886)  (1.9ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ----------------------------------------------------- Plotline::CustomMarkownParserTest: test_custom_parser -----------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.2ms) BEGIN Fixture Delete (0.8ms) DELETE FROM "plotline_entries" Fixture Insert (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 13:06:48.575600', '2016-03-25 13:06:48.575600', 822834886)  (6.4ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntryPresenterTest: test_custom_markdown_parsing ---------------------------------------------------------- Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.1ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.2ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 13:07:21.602411', '2016-03-25 13:07:21.602411', 822834886)  (1.6ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntryPresenterTest: test_custom_markdown_parsing ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Image Load (0.5ms) SELECT "plotline_images".* FROM "plotline_images"  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 13:07:29.552933', '2016-03-25 13:07:29.552933', 822834886)  (1.7ms) COMMIT  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntryPresenterTest: test_custom_markdown_parsing ---------------------------------------------------------- Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Image Load (0.4ms) SELECT "plotline_images".* FROM "plotline_images"  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.2ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 13:09:53.929906', '2016-03-25 13:09:53.929906', 822834886)  (1.6ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntryPresenterTest: test_custom_markdown_parsing ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Image Load (0.4ms) SELECT "plotline_images".* FROM "plotline_images"  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 13:10:03.047031', '2016-03-25 13:10:03.047031', 822834886)  (0.5ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntryPresenterTest: test_custom_markdown_parsing ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Image Load (0.4ms) SELECT "plotline_images".* FROM "plotline_images"  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 13:10:11.913421', '2016-03-25 13:10:11.913421', 822834886)  (1.8ms) COMMIT  (0.1ms) BEGIN  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntryPresenterTest: test_custom_markdown_parsing ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Image Load (0.5ms) SELECT "plotline_images".* FROM "plotline_images"  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 13:10:21.256712', '2016-03-25 13:10:21.256712', 822834886)  (1.8ms) COMMIT  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntryPresenterTest: test_custom_markdown_parsing ---------------------------------------------------------- Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Image Load (0.6ms) SELECT "plotline_images".* FROM "plotline_images"  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 13:13:21.942124', '2016-03-25 13:13:21.942124', 822834886)  (1.9ms) COMMIT  (0.2ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntryPresenterTest: test_custom_markdown_parsing ---------------------------------------------------------- Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Image Load (0.5ms) SELECT "plotline_images".* FROM "plotline_images"  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 13:16:07.524609', '2016-03-25 13:16:07.524609', 822834886)  (2.5ms) COMMIT  (0.2ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntryPresenterTest: test_custom_markdown_parsing ---------------------------------------------------------- Plotline::Entry Load (0.5ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Image Load (0.5ms) SELECT "plotline_images".* FROM "plotline_images"  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 13:16:44.365195', '2016-03-25 13:16:44.365195', 822834886)  (1.9ms) COMMIT  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntryPresenterTest: test_custom_markdown_parsing ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Image Load (0.4ms) SELECT "plotline_images".* FROM "plotline_images"  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.2ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 13:17:19.808399', '2016-03-25 13:17:19.808399', 822834886)  (2.4ms) COMMIT  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntryPresenterTest: test_custom_markdown_parsing ---------------------------------------------------------- Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Image Load (0.4ms) SELECT "plotline_images".* FROM "plotline_images"  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 13:18:54.192041', '2016-03-25 13:18:54.192041', 822834886)  (2.0ms) COMMIT  (0.2ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntryPresenterTest: test_custom_markdown_parsing ---------------------------------------------------------- Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Image Load (0.4ms) SELECT "plotline_images".* FROM "plotline_images"  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.9ms) DELETE FROM "plotline_entries" Fixture Insert (0.5ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 13:19:14.250651', '2016-03-25 13:19:14.250651', 822834886)  (1.9ms) COMMIT  (0.2ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntryPresenterTest: test_custom_markdown_parsing ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Image Load (0.4ms) SELECT "plotline_images".* FROM "plotline_images"  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.2ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 13:19:33.021056', '2016-03-25 13:19:33.021056', 822834886)  (1.2ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntryPresenterTest: test_custom_markdown_parsing ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Image Load (0.4ms) SELECT "plotline_images".* FROM "plotline_images"  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 13:19:48.374609', '2016-03-25 13:19:48.374609', 822834886)  (2.5ms) COMMIT  (0.2ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntryPresenterTest: test_custom_markdown_parsing ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Image Load (0.4ms) SELECT "plotline_images".* FROM "plotline_images"  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 13:20:17.634746', '2016-03-25 13:20:17.634746', 822834886)  (2.0ms) COMMIT  (0.2ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntryPresenterTest: test_custom_markdown_parsing ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Image Load (0.4ms) SELECT "plotline_images".* FROM "plotline_images"  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.5ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 13:21:01.628009', '2016-03-25 13:21:01.628009', 822834886)  (2.0ms) COMMIT  (0.2ms) BEGIN  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntryPresenterTest: test_custom_markdown_parsing ---------------------------------------------------------- Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Image Load (0.4ms) SELECT "plotline_images".* FROM "plotline_images"  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.6ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 13:24:42.341565', '2016-03-25 13:24:42.341565', 822834886)  (1.7ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntryPresenterTest: test_custom_markdown_parsing ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Image Load (0.5ms) SELECT "plotline_images".* FROM "plotline_images"  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.7ms) DELETE FROM "plotline_entries" Fixture Insert (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 13:25:12.840475', '2016-03-25 13:25:12.840475', 822834886)  (2.3ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntryPresenterTest: test_custom_markdown_parsing ---------------------------------------------------------- Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Image Load (0.4ms) SELECT "plotline_images".* FROM "plotline_images"  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 13:25:24.415668', '2016-03-25 13:25:24.415668', 822834886)  (2.0ms) COMMIT  (0.2ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntryPresenterTest: test_custom_markdown_parsing ---------------------------------------------------------- Plotline::Entry Load (0.4ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Image Load (0.4ms) SELECT "plotline_images".* FROM "plotline_images"  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (0.4ms) DELETE FROM "plotline_entries" Fixture Insert (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-03-25 13:25:30.178204', '2016-03-25 13:25:30.178204', 822834886)  (1.9ms) COMMIT  (0.2ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (4.0ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (5.9ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.5ms) Completed 200 OK in 290ms (Views: 286.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 13:25:30 UTC], ["updated_at", 2016-03-25 13:25:30 UTC]] Plotline::EntrySearchData Load (0.5ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.5ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-03-25 13:25:30 UTC], ["updated_at", 2016-03-25 13:25:30 UTC]] SQL (17.9ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-03-25 13:25:30 UTC], ["updated_at", 2016-03-25 13:25:30 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 13:25:30 UTC], ["updated_at", 2016-03-25 13:25:30 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-03-25 13:25:30 UTC], ["updated_at", 2016-03-25 13:25:30 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-03-25 13:25:30 UTC], ["updated_at", 2016-03-25 13:25:30 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.3ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.4ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-03-25 13:25:30 UTC], ["updated_at", 2016-03-25 13:25:30 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-03-25 13:25:30 UTC], ["updated_at", 2016-03-25 13:25:30 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-03-25 13:25:30 UTC], ["updated_at", 2016-03-25 13:25:30 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-03-25 13:25:30 UTC], ["updated_at", 2016-03-25 13:25:30 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-03-25 13:25:30 UTC], ["updated_at", 2016-03-25 13:25:30 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-03-25 13:25:30 UTC], ["updated_at", 2016-03-25 13:25:30 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834889]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-03-25 13:25:30 UTC], ["id", 822834889]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", "title"], ["LIMIT", 1]]  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntryPresenterTest: test_custom_markdown_parsing ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Image Load (0.4ms) SELECT "plotline_images".* FROM "plotline_images"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-03-25 13:25:30 UTC], ["updated_at", 2016-03-25 13:25:30 UTC]] Plotline::EntrySearchData Load (0.4ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-03-25 13:25:30 UTC], ["updated_at", 2016-03-25 13:25:30 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-03-25 13:25:30 UTC], ["updated_at", 2016-03-25 13:25:30 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (9.8ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.2ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 18ms (Views: 15.1ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (1.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.5ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 9ms (Views: 5.3ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (26.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (7.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (29.9ms) DELETE FROM "plotline_entries" Fixture Insert (30.7ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-06-02 16:15:40.870130', '2016-06-02 16:15:40.870130', 822834886)  (2.7ms) COMMIT  (0.1ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (7.7ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (6.0ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.6ms) Completed 200 OK in 4351ms (Views: 4347.1ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntryPresenterTest: test_custom_markdown_parsing ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Image Load (2.2ms) SELECT "plotline_images".* FROM "plotline_images"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (8.3ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (2.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.1ms) Completed 200 OK in 23ms (Views: 17.0ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (14.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.7ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 25ms (Views: 20.5ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 6ms (ActiveRecord: 0.9ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-06-02 16:15:45 UTC], ["updated_at", 2016-06-02 16:15:45 UTC]] Plotline::EntrySearchData Load (19.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (24.5ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-06-02 16:15:45 UTC], ["updated_at", 2016-06-02 16:15:45 UTC]] SQL (21.1ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-06-02 16:15:45 UTC], ["updated_at", 2016-06-02 16:15:45 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-06-02 16:15:45 UTC], ["updated_at", 2016-06-02 16:15:45 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-06-02 16:15:45 UTC], ["updated_at", 2016-06-02 16:15:45 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-06-02 16:15:45 UTC], ["updated_at", 2016-06-02 16:15:45 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (19.3ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.7ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-06-02 16:15:45 UTC], ["updated_at", 2016-06-02 16:15:45 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-06-02 16:15:45 UTC], ["updated_at", 2016-06-02 16:15:45 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-06-02 16:15:45 UTC], ["updated_at", 2016-06-02 16:15:45 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-06-02 16:15:45 UTC], ["updated_at", 2016-06-02 16:15:45 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-06-02 16:15:45 UTC], ["updated_at", 2016-06-02 16:15:45 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-06-02 16:15:45 UTC], ["updated_at", 2016-06-02 16:15:45 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834889]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-06-02 16:15:45 UTC], ["id", 822834889]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", "title"], ["LIMIT", 1]]  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.3ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-06-02 16:15:45 UTC], ["updated_at", 2016-06-02 16:15:45 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-06-02 16:15:45 UTC], ["updated_at", 2016-06-02 16:15:45 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-06-02 16:15:45 UTC], ["updated_at", 2016-06-02 16:15:45 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Creating scope :published. Overwriting existing method Plotline::Entry.published.  (0.2ms) BEGIN  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entries" DISABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" DISABLE TRIGGER ALL;ALTER TABLE "plotline_images" DISABLE TRIGGER ALL;ALTER TABLE "plotline_users" DISABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN Fixture Delete (7.1ms) DELETE FROM "plotline_entries" Fixture Insert (0.6ms) INSERT INTO "plotline_entries" ("type", "title", "slug", "created_at", "updated_at", "id") VALUES ('BlogPost', 'Hello World', 'hello-world', '2016-06-02 16:38:07.873586', '2016-06-02 16:38:07.873586', 822834886)  (6.1ms) COMMIT  (0.2ms) BEGIN  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entries" ENABLE TRIGGER ALL;ALTER TABLE "plotline_entry_search_data" ENABLE TRIGGER ALL;ALTER TABLE "plotline_images" ENABLE TRIGGER ALL;ALTER TABLE "plotline_users" ENABLE TRIGGER ALL  (0.1ms) COMMIT  (0.1ms) BEGIN ---------------------------------------------------- Plotline::EntrySearchDataTest: test_index_entry_data ----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-06-02 16:38:07 UTC], ["updated_at", 2016-06-02 16:38:07 UTC]] Plotline::EntrySearchData Load (0.8ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.4ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "title"], ["created_at", 2016-06-02 16:38:07 UTC], ["updated_at", 2016-06-02 16:38:07 UTC]] SQL (7.6ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834887], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834887], ["attr_name", "body"], ["created_at", 2016-06-02 16:38:07 UTC], ["updated_at", 2016-06-02 16:38:07 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-06-02 16:38:07 UTC], ["updated_at", 2016-06-02 16:38:07 UTC]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "title"], ["created_at", 2016-06-02 16:38:07 UTC], ["updated_at", 2016-06-02 16:38:07 UTC]] SQL (0.2ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834888], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834888], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834888], ["attr_name", "body"], ["created_at", 2016-06-02 16:38:07 UTC], ["updated_at", 2016-06-02 16:38:07 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834888], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 [["entry_id", 822834887]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (6.4ms) UPDATE "plotline_entries" SET "title" = $1, "updated_at" = $2 WHERE "plotline_entries"."id" = $3 [["title", "Hello World!!!"], ["updated_at", 2016-06-02 16:38:07 UTC], ["id", 822834887]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :title], ["LIMIT", 1]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World!!!', search_data = to_tsvector('english', 'Hello World!!!') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :title]] Plotline::EntrySearchData Load (0.3ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", :body], ["LIMIT", 1]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834887], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834887], ["attr_name", "title"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ Plotline::EntrySearchDataTest: test_search ------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello World"], ["payload", "{\"body\":\"This is an example blog post about something\"}"], ["created_at", 2016-06-02 16:38:08 UTC], ["updated_at", 2016-06-02 16:38:08 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "title"], ["created_at", 2016-06-02 16:38:08 UTC], ["updated_at", 2016-06-02 16:38:08 UTC]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello World', search_data = to_tsvector('english', 'Hello World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834889], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834889], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834889], ["attr_name", "body"], ["created_at", 2016-06-02 16:38:08 UTC], ["updated_at", 2016-06-02 16:38:08 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'This is an example blog post about something', search_data = to_tsvector('english', 'This is an example blog post about something') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834889], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "BlogPost"], ["title", "Hello Again"], ["payload", "{\"body\":\"Yet another example of full-text search\"}"], ["created_at", 2016-06-02 16:38:08 UTC], ["updated_at", 2016-06-02 16:38:08 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "title"], ["created_at", 2016-06-02 16:38:08 UTC], ["updated_at", 2016-06-02 16:38:08 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello Again', search_data = to_tsvector('english', 'Hello Again') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :title]] Plotline::EntrySearchData Load (0.2ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834890], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.3ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834890], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834890], ["attr_name", "body"], ["created_at", 2016-06-02 16:38:08 UTC], ["updated_at", 2016-06-02 16:38:08 UTC]] SQL (0.4ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Yet another example of full-text search', search_data = to_tsvector('english', 'Yet another example of full-text search') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834890], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BlogPost Load (1.2ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello world')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello world')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'hello')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('hello')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'example')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('example')) desc BlogPost Load (0.6ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'full-text')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('full-text')) desc BlogPost Load (0.5ms) SELECT DISTINCT ON (entry_id) entry_id, plotline_entries.* FROM "plotline_entries" INNER JOIN "plotline_entry_search_data" ON "plotline_entry_search_data"."entry_id" = "plotline_entries"."id" WHERE "plotline_entries"."type" IN ('BlogPost') AND (search_data @@ plainto_tsquery('english', 'blog posts')) ORDER BY entry_id, ts_rank(search_data, plainto_tsquery('blog posts')) desc  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------- Plotline::EntriesControllerTest: test_should_redirect_to_sign_in_url_if_not_logged_in ------------------------------------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Redirected to http://test.host/plotline/sign-in Filter chain halted as :authenticate_user rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------- Plotline::EntriesControllerTest: test_should_show_entry ------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#show as HTML Parameters: {"id"=>"822834886", "content_class"=>"BlogPost"} Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Rendering /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/show.html.erb within layouts/plotline/application (3.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (4.5ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.6ms) Completed 200 OK in 3987ms (Views: 3982.5ms | ActiveRecord: 0.2ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------ Plotline::EntriesControllerTest: test_should_get_index ------------------------------------------------------ Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Processing by Plotline::EntriesController#index as HTML Parameters: {"content_class"=>"BlogPost"} Rendering /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."type" = $1 [["type", "BlogPost"]] Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/entries/index.html.erb within layouts/plotline/application (9.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.4ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 16ms (Views: 12.9ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntriesControllerTest: test_should_destroy_entry ---------------------------------------------------------- Plotline::Entry Load (0.2ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "plotline_entries" Processing by Plotline::EntriesController#destroy as HTML Parameters: {"content_class"=>"BlogPost", "id"=>"822834886"} Plotline::Entry Load (0.3ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM "plotline_entries" WHERE "plotline_entries"."type" IN ('BlogPost') AND "plotline_entries"."id" = $1 [["id", 822834886]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/plotline/blog_posts/entries Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.2ms) SELECT COUNT(*) FROM "plotline_entries"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- Plotline::DashboardControllerTest: test_should_get_index -------------------------------------------------------- Processing by Plotline::DashboardController#index as HTML Rendering /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/dashboard/index.html.erb within layouts/plotline/application (0.6ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_navbar.html.erb (1.2ms) Rendered /Users/piotrek/Code/cms/plotline/app/views/plotline/shared/_flash_messages.html.erb (0.0ms) Completed 200 OK in 10ms (Views: 6.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------- Plotline::EntryPresenterTest: test_custom_markdown_parsing ---------------------------------------------------------- Plotline::Entry Load (0.1ms) SELECT "plotline_entries".* FROM "plotline_entries" WHERE "plotline_entries"."id" = $1 LIMIT $2 [["id", 822834886], ["LIMIT", 1]] Plotline::Image Load (0.5ms) SELECT "plotline_images".* FROM "plotline_images"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- Plotline::EntryTest: test_content_attr --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------- Plotline::EntryTest: test_searchable_attributes -----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- Plotline::EntryTest: test_search_attributes -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- Plotline::EntryTest: test_update_search_index ---------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "plotline_entries" ("type", "title", "payload", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Plotline::FooSearchableContent"], ["title", "Hello"], ["payload", "{\"body\":\"World\"}"], ["created_at", 2016-06-02 16:38:12 UTC], ["updated_at", 2016-06-02 16:38:12 UTC]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :title], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "title"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "title"], ["created_at", 2016-06-02 16:38:12 UTC], ["updated_at", 2016-06-02 16:38:12 UTC]] SQL (0.3ms) UPDATE "plotline_entry_search_data" SET raw_data = 'Hello', search_data = to_tsvector('english', 'Hello') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :title]] Plotline::EntrySearchData Load (0.1ms) SELECT "plotline_entry_search_data".* FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 LIMIT $3 [["entry_id", 822834891], ["attr_name", :body], ["LIMIT", 1]] Plotline::EntrySearchData Exists (0.2ms) SELECT 1 AS one FROM "plotline_entry_search_data" WHERE "plotline_entry_search_data"."attr_name" = $1 AND "plotline_entry_search_data"."entry_id" = $2 LIMIT $3 [["attr_name", "body"], ["entry_id", 822834891], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "plotline_entry_search_data" ("entry_id", "attr_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["entry_id", 822834891], ["attr_name", "body"], ["created_at", 2016-06-02 16:38:12 UTC], ["updated_at", 2016-06-02 16:38:12 UTC]] SQL (0.5ms) UPDATE "plotline_entry_search_data" SET raw_data = 'World', search_data = to_tsvector('english', 'World') WHERE "plotline_entry_search_data"."entry_id" = $1 AND "plotline_entry_search_data"."attr_name" = $2 [["entry_id", 822834891], ["attr_name", :body]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "plotline_entry_search_data"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ PlotlineTest: test_truth ------------------------  (0.1ms) ROLLBACK