refinery/refinerycms — pull request #2628 by mattdoller (2014-07-02 20:29:02+00:00)
Title: Fixes to breaking tests in travis

I noticed that there were some breaking tests in the Travis builds - I'm not familiar with the code base at all (just cloned it a few hours ago), so apologies if I misunderstood anything here.

For the issue re: updates vs. creations, here's the test log output that led me to think translations were the culprit. If that's incorrect, just let me know.

SQL (0.4ms) INSERT INTO "refinery_pages" ("created_at", "lft", "rgt", "slug", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-07-02 20:22:22.780010"], ["lft", 1], ["rgt", 2], ["slug", "refinery-cms-0"], ["updated_at", "2014-07-02 20:22:22.780010"]]
SQL (0.4ms) INSERT INTO "refinery_page_translations" ("created_at", "locale", "refinery_page_id", "slug", "title", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-07-02 20:22:22.794015"], ["locale", "en"], ["refinery_page_id", 235], ["slug", "refinery-cms-0"], ["title", "Refinery CMS 0"], ["updated_at", "2014-07-02 20:22:22.794015"]]
Refinery::Page Load (0.4ms) SELECT "refinery_pages".* FROM "refinery_pages" WHERE "refinery_pages"."id" = $1 LIMIT 1 [["id", 235]]
SQL (0.5ms) UPDATE "refinery_pages" SET "updated_at" = '2014-07-02 20:22:22.806239' WHERE "refinery_pages"."id" = 235