test/dummy/log/test.log in proposal-0.0.6 vs test/dummy/log/test.log in proposal-1.0.0
- old
+ new
@@ -53529,5 +53529,1454 @@
[1m[35m (0.0ms)[0m begin transaction
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
[1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:02:11.575678') LIMIT 1[0m
[1m[35m (0.0ms)[0m rollback transaction
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
+Migrating to CreateProposalTokens (20121026005348)
+ [1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
+Migrating to CreateUsers (20121026035505)
+Migrating to CreateProjects (20121031041439)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.6ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "proposal_tokens" ("accepted_at", "arguments", "created_at", "email", "expires_at", "proposable_type", "proposer_id", "proposer_type", "reminded_at", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["accepted_at", nil], ["arguments", nil], ["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["expires_at", Sun, 18 Nov 2012 04:28:59 UTC +00:00], ["proposable_type", "User"], ["proposer_id", nil], ["proposer_type", nil], ["reminded_at", nil], ["resource_id", 1], ["resource_type", "Project"], ["token", "atG3pxM6qM4PsS3RirFz"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 2 AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 2 AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "proposal_tokens" ("accepted_at", "arguments", "created_at", "email", "expires_at", "proposable_type", "proposer_id", "proposer_type", "reminded_at", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["accepted_at", nil], ["arguments", nil], ["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["expires_at", Sun, 18 Nov 2012 04:28:59 UTC +00:00], ["proposable_type", "User"], ["proposer_id", nil], ["proposer_type", nil], ["reminded_at", nil], ["resource_id", 2], ["resource_type", "Project"], ["token", "HxwcayR9bUZyb96xM9uJ"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 2 AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36m (2.8ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("accepted_at", "arguments", "created_at", "email", "expires_at", "proposable_type", "proposer_id", "proposer_type", "reminded_at", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["accepted_at", nil], ["arguments", nil], ["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["expires_at", Sun, 18 Nov 2012 04:28:59 UTC +00:00], ["proposable_type", "User"], ["proposer_id", nil], ["proposer_type", nil], ["reminded_at", nil], ["resource_id", nil], ["resource_type", nil], ["token", "cr4XR7nU6EeQopzgo19F"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "proposal_tokens" SET "updated_at" = '2012-11-17 04:28:59.501000', "accepted_at" = '2012-11-17 04:28:59.501000' WHERE "proposal_tokens"."id" = 1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "proposal_tokens" ("accepted_at", "arguments", "created_at", "email", "expires_at", "proposable_type", "proposer_id", "proposer_type", "reminded_at", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["accepted_at", nil], ["arguments", nil], ["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["expires_at", Sun, 18 Nov 2012 04:28:59 UTC +00:00], ["proposable_type", "User"], ["proposer_id", nil], ["proposer_type", nil], ["reminded_at", nil], ["resource_id", nil], ["resource_type", nil], ["token", "kz2a3RfFpw5v3QiXVHFP"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "proposal_tokens" SET "updated_at" = '2012-11-17 04:28:59.505744', "accepted_at" = '2012-11-17 04:28:59.505744' WHERE "proposal_tokens"."id" = 1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("accepted_at", "arguments", "created_at", "email", "expires_at", "proposable_type", "proposer_id", "proposer_type", "reminded_at", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["accepted_at", nil], ["arguments", nil], ["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["expires_at", Sun, 18 Nov 2012 04:28:59 UTC +00:00], ["proposable_type", "User"], ["proposer_id", nil], ["proposer_type", nil], ["reminded_at", nil], ["resource_id", nil], ["resource_type", nil], ["token", "HJ57SZpNpLyMz9kojtof"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proposal_tokens" ("accepted_at", "arguments", "created_at", "email", "expires_at", "proposable_type", "proposer_id", "proposer_type", "reminded_at", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["accepted_at", nil], ["arguments", nil], ["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["expires_at", Sun, 18 Nov 2012 04:28:59 UTC +00:00], ["proposable_type", "User"], ["proposer_id", nil], ["proposer_type", nil], ["reminded_at", nil], ["resource_id", 1], ["resource_type", "Project"], ["token", "JEy6Mids9o2fsVvsqpqp"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "proposal_tokens" SET "updated_at" = '2012-11-17 04:28:59.519221', "accepted_at" = '2012-11-17 04:28:59.519221' WHERE "proposal_tokens"."id" = 1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Exists (0.0ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proposal_tokens" ("accepted_at", "arguments", "created_at", "email", "expires_at", "proposable_type", "proposer_id", "proposer_type", "reminded_at", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["accepted_at", nil], ["arguments", nil], ["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["expires_at", Sun, 18 Nov 2012 04:28:59 UTC +00:00], ["proposable_type", "User"], ["proposer_id", nil], ["proposer_type", nil], ["reminded_at", nil], ["resource_id", 1], ["resource_type", "Project"], ["token", "8qt1hcRnW62kE678FpPW"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("accepted_at", "arguments", "created_at", "email", "expires_at", "proposable_type", "proposer_id", "proposer_type", "reminded_at", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["accepted_at", nil], ["arguments", nil], ["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["expires_at", Sun, 18 Nov 2012 04:28:59 UTC +00:00], ["proposable_type", "User"], ["proposer_id", nil], ["proposer_type", nil], ["reminded_at", nil], ["resource_id", nil], ["resource_type", nil], ["token", "hm8LpBdLRyBCvQjzNPzj"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("accepted_at", "arguments", "created_at", "email", "expires_at", "proposable_type", "proposer_id", "proposer_type", "reminded_at", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["accepted_at", nil], ["arguments", nil], ["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["expires_at", Sun, 18 Nov 2012 04:28:59 UTC +00:00], ["proposable_type", "User"], ["proposer_id", nil], ["proposer_type", nil], ["reminded_at", nil], ["resource_id", nil], ["resource_type", nil], ["token", "FL18Yt9fRpTgnvrRpKfK"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."token" = 'FL18Yt9fRpTgnvrRpKfK' LIMIT 1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "proposal_tokens" SET "updated_at" = '2012-11-17 04:28:59.530365', "accepted_at" = '2012-11-17 04:28:59.530365' WHERE "proposal_tokens"."id" = 1[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mProposal::Token Load (0.2ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proposal_tokens" ("accepted_at", "arguments", "created_at", "email", "expires_at", "proposable_type", "proposer_id", "proposer_type", "reminded_at", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["accepted_at", nil], ["arguments", nil], ["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["expires_at", Sun, 18 Nov 2012 04:28:59 UTC +00:00], ["proposable_type", "User"], ["proposer_id", nil], ["proposer_type", nil], ["reminded_at", nil], ["resource_id", nil], ["resource_type", nil], ["token", "DQ9QGtNahVPg16xsQ2qs"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
+ [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
+ [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "proposal_tokens" ("accepted_at", "arguments", "created_at", "email", "expires_at", "proposable_type", "proposer_id", "proposer_type", "reminded_at", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["accepted_at", nil], ["arguments", nil], ["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["expires_at", Sun, 18 Nov 2012 04:28:59 UTC +00:00], ["proposable_type", "User"], ["proposer_id", nil], ["proposer_type", nil], ["reminded_at", nil], ["resource_id", nil], ["resource_type", nil], ["token", "ZsBpqobEsJc98Hq97KYJ"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("accepted_at", "arguments", "created_at", "email", "expires_at", "proposable_type", "proposer_id", "proposer_type", "reminded_at", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["accepted_at", nil], ["arguments", nil], ["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["expires_at", Sun, 17 Nov 2013 04:28:59 UTC +00:00], ["proposable_type", "User"], ["proposer_id", nil], ["proposer_type", nil], ["reminded_at", nil], ["resource_id", nil], ["resource_type", nil], ["token", "8FfgxWpSMB8i4BATzyjr"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("accepted_at", "arguments", "created_at", "email", "expires_at", "proposable_type", "proposer_id", "proposer_type", "reminded_at", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["accepted_at", nil], ["arguments", nil], ["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["expires_at", Sun, 18 Nov 2012 04:28:59 UTC +00:00], ["proposable_type", "User"], ["proposer_id", nil], ["proposer_type", nil], ["reminded_at", nil], ["resource_id", nil], ["resource_type", nil], ["token", "HvRYMNPYwXgWa2bGEtsR"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "proposal_tokens" SET "updated_at" = '2012-11-17 04:28:59.557050', "accepted_at" = '2012-11-17 04:28:59.557050' WHERE "proposal_tokens"."id" = 1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.0ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.0ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.0ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
+ [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36mProposal::Token Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("accepted_at", "arguments", "created_at", "email", "expires_at", "proposable_type", "proposer_id", "proposer_type", "reminded_at", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["accepted_at", nil], ["arguments", "---\n- admin\n- 1\n"], ["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["expires_at", Sun, 18 Nov 2012 04:28:59 UTC +00:00], ["proposable_type", "User"], ["proposer_id", nil], ["proposer_type", nil], ["reminded_at", nil], ["resource_id", nil], ["resource_type", nil], ["token", "uSYf68Hxmq8BLrVNGHuQ"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."token" = 'uSYf68Hxmq8BLrVNGHuQ' LIMIT 1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("accepted_at", "arguments", "created_at", "email", "expires_at", "proposable_type", "proposer_id", "proposer_type", "reminded_at", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["accepted_at", nil], ["arguments", nil], ["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["expires_at", Sun, 18 Nov 2012 04:28:59 UTC +00:00], ["proposable_type", "User"], ["proposer_id", nil], ["proposer_type", nil], ["reminded_at", nil], ["resource_id", nil], ["resource_type", nil], ["token", "k9uubf7sbLsjrg1xzyRS"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = 'User'
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("accepted_at", "arguments", "created_at", "email", "expires_at", "proposable_type", "proposer_id", "proposer_type", "reminded_at", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["accepted_at", nil], ["arguments", "---\n:role: admin\n"], ["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["expires_at", Sun, 18 Nov 2012 04:28:59 UTC +00:00], ["proposable_type", "User"], ["proposer_id", nil], ["proposer_type", nil], ["reminded_at", nil], ["resource_id", nil], ["resource_type", nil], ["token", "JdyKXsvvBys7qkeBmr1b"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."token" = 'JdyKXsvvBys7qkeBmr1b' LIMIT 1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proposal_tokens" ("accepted_at", "arguments", "created_at", "email", "expires_at", "proposable_type", "proposer_id", "proposer_type", "reminded_at", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["accepted_at", nil], ["arguments", nil], ["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["expires_at", Sun, 18 Nov 2012 04:28:59 UTC +00:00], ["proposable_type", "User"], ["proposer_id", 1], ["proposer_type", "User"], ["reminded_at", nil], ["resource_id", nil], ["resource_type", nil], ["token", "uEEKWNMkeqBp4qrorTtw"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = 'User' AND "proposal_tokens"."proposer_id" = 1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proposal_tokens" ("accepted_at", "arguments", "created_at", "email", "expires_at", "proposable_type", "proposer_id", "proposer_type", "reminded_at", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["accepted_at", nil], ["arguments", nil], ["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["expires_at", Sun, 18 Nov 2012 04:28:59 UTC +00:00], ["proposable_type", "User"], ["proposer_id", nil], ["proposer_type", nil], ["reminded_at", nil], ["resource_id", 1], ["resource_type", "Project"], ["token", "tq9wMiPxyhUC3PW2WQjx"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proposal_tokens" ("accepted_at", "arguments", "created_at", "email", "expires_at", "proposable_type", "proposer_id", "proposer_type", "reminded_at", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["accepted_at", nil], ["arguments", nil], ["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["expires_at", Sun, 18 Nov 2012 04:28:59 UTC +00:00], ["proposable_type", "User"], ["proposer_id", nil], ["proposer_type", nil], ["reminded_at", nil], ["resource_id", nil], ["resource_type", nil], ["token", "Zq8RR5W3tGg6xjcWoyvQ"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proposal_tokens" ("accepted_at", "arguments", "created_at", "email", "expires_at", "proposable_type", "proposer_id", "proposer_type", "reminded_at", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["accepted_at", nil], ["arguments", nil], ["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["expires_at", Sun, 18 Nov 2012 04:28:59 UTC +00:00], ["proposable_type", "User"], ["proposer_id", nil], ["proposer_type", nil], ["reminded_at", nil], ["resource_id", nil], ["resource_type", nil], ["token", "ncBU8U8hf69FZzksSymV"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "proposal_tokens" SET "updated_at" = '2012-11-17 04:28:59.619317', "reminded_at" = '2012-11-17 04:28:59.619317' WHERE "proposal_tokens"."id" = 1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("accepted_at", "arguments", "created_at", "email", "expires_at", "proposable_type", "proposer_id", "proposer_type", "reminded_at", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["accepted_at", nil], ["arguments", nil], ["created_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00], ["email", "user@example.com"], ["expires_at", Sun, 18 Nov 2012 04:28:59 UTC +00:00], ["proposable_type", "User"], ["proposer_id", nil], ["proposer_type", nil], ["reminded_at", nil], ["resource_id", nil], ["resource_type", nil], ["token", "yHYWPptxmpAsEWiRSjQu"], ["updated_at", Sat, 17 Nov 2012 04:28:59 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "proposal_tokens" SET "updated_at" = '2012-11-17 04:28:59.625038', "reminded_at" = '2012-11-17 04:28:59.625038' WHERE "proposal_tokens"."id" = 1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.0ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2012-11-17 04:28:59.134725') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-------------------------------------------
+ProposalTest: test_should_accept_a_resource
+-------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (4.6ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.434885') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.474308') LIMIT 1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:41:54 UTC +00:00], ["proposable_type", "User"], ["resource_id", 1], ["resource_type", "Project"], ["token", "bkDNwyYzeAAssz7FipQq"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 2 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.516736') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 2 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.518370') LIMIT 1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:41:54 UTC +00:00], ["proposable_type", "User"], ["resource_id", 2], ["resource_type", "Project"], ["token", "BC45uHSzjT8mRyACmyJu"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 2 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.519929') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+-----------------------------------------------------------------
+ProposalTest: test_should_add_errors_when_not_acceptable_accepted
+-----------------------------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.522316') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.524013') LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:41:54 UTC +00:00], ["proposable_type", "User"], ["token", "cc4RfLMp6SQGfQZZPhSs"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m UPDATE "proposal_tokens" SET "updated_at" = '2013-10-03 08:41:54.526283', "accepted_at" = '2013-10-03 08:41:54.526283' WHERE "proposal_tokens"."id" = 1
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+----------------------------------------------------------------------
+ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe
+----------------------------------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.529186') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.530800') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:41:54 UTC +00:00], ["proposable_type", "User"], ["token", "FFqp2rqKpx5astdjGopR"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "proposal_tokens" SET "updated_at" = '2013-10-03 08:41:54.532801', "accepted_at" = '2013-10-03 08:41:54.532801' WHERE "proposal_tokens"."id" = 1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+----------------------------------------------------------------
+ProposalTest: test_should_add_errors_when_not_acceptable_expired
+----------------------------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.534576') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.535881') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:41:54 UTC +00:00], ["proposable_type", "User"], ["token", "Tp2Giesn8yU4xBpLETVs"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------------------
+ProposalTest: test_should_create_a_new_token_if_accepted_token_exists
+---------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.549893') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.551596') LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:41:54 UTC +00:00], ["proposable_type", "User"], ["resource_id", 1], ["resource_type", "Project"], ["token", "aZVJMTKheWdCYNxbe2DR"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "proposal_tokens" SET "updated_at" = '2013-10-03 08:41:54.553089', "accepted_at" = '2013-10-03 08:41:54.553089' WHERE "proposal_tokens"."id" = 1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.553548') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.554766') LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:41:54 UTC +00:00], ["proposable_type", "User"], ["resource_id", 1], ["resource_type", "Project"], ["token", "LeqVtTTs18W43VKQg8oB"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+-----------------------------------------------------
+ProposalTest: test_should_create_valid_proposal_token
+-----------------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.558002') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.559867') LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:41:54 UTC +00:00], ["proposable_type", "User"], ["token", "8R4NyPk633xmcYTSmKhK"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+--------------------------------------------------
+ProposalTest: test_should_find_and_accept_proposal
+--------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.564027') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.565307') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:41:54 UTC +00:00], ["proposable_type", "User"], ["token", "pJuEhVdKkyzmTse7TBGE"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."token" = 'pJuEhVdKkyzmTse7TBGE' LIMIT 1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "proposal_tokens" SET "updated_at" = '2013-10-03 08:41:54.567939', "accepted_at" = '2013-10-03 08:41:54.567939' WHERE "proposal_tokens"."id" = 1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+------------------------------------------------------------------
+ProposalTest: test_should_have_action_remind_for_invite_(new_user)
+------------------------------------------------------------------
+ [1m[35mProposal::Token Load (0.2ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.569492') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.570940') LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:41:54 UTC +00:00], ["proposable_type", "User"], ["token", "Tbt1wz9msyzg1r7Q5U8d"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.572674') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-----------------------------------------------------------------------
+ProposalTest: test_should_have_action_remind_for_notify_(existing_user)
+-----------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.580801') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.582231') LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:41:54 UTC +00:00], ["proposable_type", "User"], ["token", "q2NvrNKPyUJsetQizutr"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.584065') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------
+ProposalTest: test_should_not_create_a_new_token_if_token_exists
+----------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.589178') LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 03 Oct 2014 08:41:54 UTC +00:00], ["proposable_type", "User"], ["token", "4XxmqvpmjDpyEVpU2tL9"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.591956') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+----------------------------------------------------------
+ProposalTest: test_should_not_return_no_action_if_accepted
+----------------------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.593718') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.595360') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:41:54 UTC +00:00], ["proposable_type", "User"], ["token", "Sy3GwFvRxez6Esyq6j1M"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m UPDATE "proposal_tokens" SET "updated_at" = '2013-10-03 08:41:54.597126', "accepted_at" = '2013-10-03 08:41:54.597126' WHERE "proposal_tokens"."id" = 1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+-----------------------------------------------------------
+ProposalTest: test_should_not_return_proposal_action_invite
+-----------------------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.599089') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.600265') LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.601526') LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-----------------------------------------------------------
+ProposalTest: test_should_not_return_proposal_action_notify
+-----------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.603914') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.604985') LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.606290') LIMIT 1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+------------------------------------------------------
+ProposalTest: test_should_not_return_proposal_instance
+------------------------------------------------------
+ [1m[36mProposal::Token Load (0.3ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.607892') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-----------------------------------------------------------
+ProposalTest: test_should_raise_error_if_remind_is_not_true
+-----------------------------------------------------------
+ [1m[35mProposal::Token Load (0.2ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.610998') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.612308') LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+--------------------------------------------------
+ProposalTest: test_should_respond_to_the_recipient
+--------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.614912') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+ProposalTest: test_should_respond_to_the_resource
+-------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.619183') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+----------------------------------------------
+ProposalTest: test_should_return_all_arguments
+----------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.620947') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.622260') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", "---\n- admin\n- 1\n"], ["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:41:54 UTC +00:00], ["proposable_type", "User"], ["token", "dY67ScE1msVLLpqftaUg"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."token" = 'dY67ScE1msVLLpqftaUg' LIMIT 1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+-------------------------------------------------------
+ProposalTest: test_should_return_all_proposals_for_type
+-------------------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.625747') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.627080') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:41:54 UTC +00:00], ["proposable_type", "User"], ["token", "pktsJMDNYK5ysDq9kybk"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = 'User'
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+------------------------------------------------------------
+ProposalTest: test_should_return_hash_when_arguments_is_hash
+------------------------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.629924') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.631372') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", "---\n:role: admin\n"], ["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:41:54 UTC +00:00], ["proposable_type", "User"], ["token", "qDorKFmZFhBtLELNVWfp"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."token" = 'qDorKFmZFhBtLELNVWfp' LIMIT 1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+--------------------------------------------------
+ProposalTest: test_should_return_proposal_instance
+--------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.635700') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.637201') LIMIT 1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+----------------------------------------------------------------
+ProposalTest: test_should_return_proposals_for_proposer_instance
+----------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.2ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.639728') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.641531') LIMIT 1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "proposer_id", "proposer_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:41:54 UTC +00:00], ["proposable_type", "User"], ["proposer_id", 1], ["proposer_type", "User"], ["token", "3ApzBySeL5dxnw2fcrEY"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = 'User' AND "proposal_tokens"."proposer_id" = 1[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------
+ProposalTest: test_should_return_proposals_for_resource_instance
+----------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.2ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.647636') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.649258') LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:41:54 UTC +00:00], ["proposable_type", "User"], ["resource_id", 1], ["resource_type", "Project"], ["token", "6UArdzX5dV3A3YwMjksM"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+---------------------------------------------
+ProposalTest: test_should_return_the_resource
+---------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.653208') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------
+ProposalTest: test_should_return_token_from_to_s_method
+-------------------------------------------------------
+ [1m[35mProposal::Token Load (0.2ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.655043') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.656383') LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:41:54 UTC +00:00], ["proposable_type", "User"], ["token", "8ouysxP6XRZBzss4Dt9H"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+-------------------------------------------
+ProposalTest: test_should_set_reminded_bang
+-------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.659976') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.661267') LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:41:54 UTC +00:00], ["proposable_type", "User"], ["token", "x2wDPGbt8aNHRDSgTdto"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.662836') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "proposal_tokens" SET "updated_at" = '2013-10-03 08:41:54.664577', "reminded_at" = '2013-10-03 08:41:54.664577' WHERE "proposal_tokens"."id" = 1[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-------------------------------------------
+ProposalTest: test_should_set_reminded_safe
+-------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.668155') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.669797') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:41:54 UTC +00:00], ["proposable_type", "User"], ["token", "cfKycsV43wYxoosSjtsW"], ["updated_at", Thu, 03 Oct 2013 08:41:54 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.671517') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "proposal_tokens" SET "updated_at" = '2013-10-03 08:41:54.672825', "reminded_at" = '2013-10-03 08:41:54.672825' WHERE "proposal_tokens"."id" = 1
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+--------------------------------------------------------
+ProposalTest: test_should_validate_arguments_with_a_proc
+--------------------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.674804') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.676226') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+--------------------------------------------------------
+ProposalTest: test_should_validate_arguments_with_symbol
+--------------------------------------------------------
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.677338') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.678454') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+-----------------------------------------------------------------
+ProposalTest: test_should_validate_arguments_with_symbol_and_args
+-----------------------------------------------------------------
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.679491') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.680591') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+---------------------------------------------------------
+ProposalTest: test_should_validate_arguments_with_symbols
+---------------------------------------------------------
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.681597') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.682695') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+------------------------
+ProposalTest: test_truth
+------------------------
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+--------------------------------------------
+ProposalTest: test_user_should_have_proposal
+--------------------------------------------
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:41:54.684034') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-------------------------------------------
+ProposalTest: test_should_accept_a_resource
+-------------------------------------------
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.1ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:43:04 UTC +00:00], ["updated_at", Thu, 03 Oct 2013 08:43:04 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:04.919860') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:04.956718') LIMIT 1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:43:04 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:43:04 UTC +00:00], ["proposable_type", "User"], ["resource_id", 1], ["resource_type", "Project"], ["token", "uE7FJ3Dw9752MBLJbLx9"], ["updated_at", Thu, 03 Oct 2013 08:43:04 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:43:04 UTC +00:00], ["updated_at", Thu, 03 Oct 2013 08:43:04 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 2 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:04.964708') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 2 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:04.966388') LIMIT 1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:43:04 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:43:04 UTC +00:00], ["proposable_type", "User"], ["resource_id", 2], ["resource_type", "Project"], ["token", "Mmh33fo8xxh4sXja7WaM"], ["updated_at", Thu, 03 Oct 2013 08:43:04 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 2 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:04.967994') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36m (2.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+-----------------------------------------------------------------
+ProposalTest: test_should_add_errors_when_not_acceptable_accepted
+-----------------------------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:04.972282') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:04.974477') LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:43:04 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:43:04 UTC +00:00], ["proposable_type", "User"], ["token", "onzT8szZpevhS9yCnyek"], ["updated_at", Thu, 03 Oct 2013 08:43:04 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m UPDATE "proposal_tokens" SET "updated_at" = '2013-10-03 08:43:04.976511', "accepted_at" = '2013-10-03 08:43:04.976511' WHERE "proposal_tokens"."id" = 1
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+----------------------------------------------------------------------
+ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe
+----------------------------------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:04.978841') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:04.980468') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:43:04 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:43:04 UTC +00:00], ["proposable_type", "User"], ["token", "mymo6y97wyYcuVa8caah"], ["updated_at", Thu, 03 Oct 2013 08:43:04 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m UPDATE "proposal_tokens" SET "updated_at" = '2013-10-03 08:43:04.982445', "accepted_at" = '2013-10-03 08:43:04.982445' WHERE "proposal_tokens"."id" = 1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+----------------------------------------------------------------
+ProposalTest: test_should_add_errors_when_not_acceptable_expired
+----------------------------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:04.984323') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:04.985607') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:43:04 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:43:04 UTC +00:00], ["proposable_type", "User"], ["token", "isG1nmAL4Xp4SodpfvtZ"], ["updated_at", Thu, 03 Oct 2013 08:43:04 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------------------
+ProposalTest: test_should_create_a_new_token_if_accepted_token_exists
+---------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:43:04 UTC +00:00], ["updated_at", Thu, 03 Oct 2013 08:43:04 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 08:43:04 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:43:04 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.000549') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.002386') LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:43:05 UTC +00:00], ["proposable_type", "User"], ["resource_id", 1], ["resource_type", "Project"], ["token", "Gues9qRfGXQXydrYhNxr"], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "proposal_tokens" SET "updated_at" = '2013-10-03 08:43:05.004207', "accepted_at" = '2013-10-03 08:43:05.004207' WHERE "proposal_tokens"."id" = 1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.004724') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.006110') LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:43:05 UTC +00:00], ["proposable_type", "User"], ["resource_id", 1], ["resource_type", "Project"], ["token", "qF7BVWAViLCUcusqxN9N"], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+-----------------------------------------------------
+ProposalTest: test_should_create_valid_proposal_token
+-----------------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.009461') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.010955') LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:43:05 UTC +00:00], ["proposable_type", "User"], ["token", "GA7APGtjbDZmyYXMnE3k"], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+--------------------------------------------------
+ProposalTest: test_should_find_and_accept_proposal
+--------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.014743') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.016080') LIMIT 1[0m
+ [1m[35mSQL (0.6ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:43:05 UTC +00:00], ["proposable_type", "User"], ["token", "fPwzYHN9per5x1jqY1mB"], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.2ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."token" = 'fPwzYHN9per5x1jqY1mB' LIMIT 1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "proposal_tokens" SET "updated_at" = '2013-10-03 08:43:05.020083', "accepted_at" = '2013-10-03 08:43:05.020083' WHERE "proposal_tokens"."id" = 1[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+------------------------------------------------------------------
+ProposalTest: test_should_have_action_remind_for_invite_(new_user)
+------------------------------------------------------------------
+ [1m[35mProposal::Token Load (0.2ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.021973') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.023792') LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:43:05 UTC +00:00], ["proposable_type", "User"], ["token", "DduYa7BzsWW6u5k7LsML"], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.025791') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-----------------------------------------------------------------------
+ProposalTest: test_should_have_action_remind_for_notify_(existing_user)
+-----------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.032956') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.034445') LIMIT 1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:43:05 UTC +00:00], ["proposable_type", "User"], ["token", "Nn6tRDomHnBjiVMoPMHL"], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.2ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.036476') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------
+ProposalTest: test_should_not_create_a_new_token_if_token_exists
+----------------------------------------------------------------
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.041330') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 03 Oct 2014 08:43:05 UTC +00:00], ["proposable_type", "User"], ["token", "Vgoq72EygkoBwpCkzmNu"], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.043944') LIMIT 1[0m
+ [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+----------------------------------------------------------
+ProposalTest: test_should_not_return_no_action_if_accepted
+----------------------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.045714') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.047217') LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:43:05 UTC +00:00], ["proposable_type", "User"], ["token", "AJbQ6ixsdyqxzsvYxops"], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m UPDATE "proposal_tokens" SET "updated_at" = '2013-10-03 08:43:05.048932', "accepted_at" = '2013-10-03 08:43:05.048932' WHERE "proposal_tokens"."id" = 1
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+-----------------------------------------------------------
+ProposalTest: test_should_not_return_proposal_action_invite
+-----------------------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.051429') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.053084') LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.054513') LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-----------------------------------------------------------
+ProposalTest: test_should_not_return_proposal_action_notify
+-----------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.057170') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.058385') LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.059824') LIMIT 1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+------------------------------------------------------
+ProposalTest: test_should_not_return_proposal_instance
+------------------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.061340') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-----------------------------------------------------------
+ProposalTest: test_should_raise_error_if_remind_is_not_true
+-----------------------------------------------------------
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.063335') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.064448') LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+--------------------------------------------------
+ProposalTest: test_should_respond_to_the_recipient
+--------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.066952') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+ProposalTest: test_should_respond_to_the_resource
+-------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.071333') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+----------------------------------------------
+ProposalTest: test_should_return_all_arguments
+----------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.073192') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.074608') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", "---\n- admin\n- 1\n"], ["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:43:05 UTC +00:00], ["proposable_type", "User"], ["token", "f1ckYdBjNmkr1HMuiHVT"], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."token" = 'f1ckYdBjNmkr1HMuiHVT' LIMIT 1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+-------------------------------------------------------
+ProposalTest: test_should_return_all_proposals_for_type
+-------------------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.078278') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.079694') LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:43:05 UTC +00:00], ["proposable_type", "User"], ["token", "HHcuDGbwYQTBexzppCm7"], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = 'User'
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+------------------------------------------------------------
+ProposalTest: test_should_return_hash_when_arguments_is_hash
+------------------------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.082806') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.084474') LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", "---\n:role: admin\n"], ["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:43:05 UTC +00:00], ["proposable_type", "User"], ["token", "7pjBMj7g7ED7nPmYR6WR"], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."token" = '7pjBMj7g7ED7nPmYR6WR' LIMIT 1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+--------------------------------------------------
+ProposalTest: test_should_return_proposal_instance
+--------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.089343') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.090987') LIMIT 1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+----------------------------------------------------------------
+ProposalTest: test_should_return_proposals_for_proposer_instance
+----------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.093699') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.095193') LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "proposer_id", "proposer_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:43:05 UTC +00:00], ["proposable_type", "User"], ["proposer_id", 1], ["proposer_type", "User"], ["token", "rFBpxNN9CW2z9nqGqWEk"], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = 'User' AND "proposal_tokens"."proposer_id" = 1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------
+ProposalTest: test_should_return_proposals_for_resource_instance
+----------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.101225') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.102792') LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:43:05 UTC +00:00], ["proposable_type", "User"], ["resource_id", 1], ["resource_type", "Project"], ["token", "7wyerxRuf1YZPhZEYZzz"], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1[0m
+ [1m[35m (0.7ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+---------------------------------------------
+ProposalTest: test_should_return_the_resource
+---------------------------------------------
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.107280') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------
+ProposalTest: test_should_return_token_from_to_s_method
+-------------------------------------------------------
+ [1m[35mProposal::Token Load (0.2ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.109044') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.110383') LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:43:05 UTC +00:00], ["proposable_type", "User"], ["token", "XQQhw8ot4ftY5w4ZsX5Z"], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+-------------------------------------------
+ProposalTest: test_should_set_reminded_bang
+-------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.113969') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.144079') LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:43:05 UTC +00:00], ["proposable_type", "User"], ["token", "aQutYgwpNqVLxGThPsLJ"], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.146171') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "proposal_tokens" SET "updated_at" = '2013-10-03 08:43:05.147780', "reminded_at" = '2013-10-03 08:43:05.147780' WHERE "proposal_tokens"."id" = 1[0m
+ [1m[35m (0.7ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-------------------------------------------
+ProposalTest: test_should_set_reminded_safe
+-------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.151258') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.152807') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:43:05 UTC +00:00], ["proposable_type", "User"], ["token", "izTgFHeX4CgYqeTwCs2F"], ["updated_at", Thu, 03 Oct 2013 08:43:05 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.154556') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "proposal_tokens" SET "updated_at" = '2013-10-03 08:43:05.155841', "reminded_at" = '2013-10-03 08:43:05.155841' WHERE "proposal_tokens"."id" = 1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+--------------------------------------------------------
+ProposalTest: test_should_validate_arguments_with_a_proc
+--------------------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.157652') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.158917') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+--------------------------------------------------------
+ProposalTest: test_should_validate_arguments_with_symbol
+--------------------------------------------------------
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.159954') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.161033') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+-----------------------------------------------------------------
+ProposalTest: test_should_validate_arguments_with_symbol_and_args
+-----------------------------------------------------------------
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.162024') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.163096') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+---------------------------------------------------------
+ProposalTest: test_should_validate_arguments_with_symbols
+---------------------------------------------------------
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.164086') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.165155') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+------------------------
+ProposalTest: test_truth
+------------------------
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+--------------------------------------------
+ProposalTest: test_user_should_have_proposal
+--------------------------------------------
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:43:05.166506') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-------------------------------------------
+ProposalTest: test_should_accept_a_resource
+-------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.1ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.627908') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.663010') LIMIT 1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:48:07 UTC +00:00], ["proposable_type", "User"], ["resource_id", 1], ["resource_type", "Project"], ["token", "G2RzUjnZJypqYTEVSc9j"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 2 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.699210') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 2 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.700783') LIMIT 1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:48:07 UTC +00:00], ["proposable_type", "User"], ["resource_id", 2], ["resource_type", "Project"], ["token", "NBGDkpYN5vuAz88M3Dy9"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 2 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.702370') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36m (1.8ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+-----------------------------------------------------------------
+ProposalTest: test_should_add_errors_when_not_acceptable_accepted
+-----------------------------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.706195') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.708360') LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:48:07 UTC +00:00], ["proposable_type", "User"], ["token", "LYwpBx81SHZArLs1TR8Q"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m UPDATE "proposal_tokens" SET "updated_at" = '2013-10-03 08:48:07.710408', "accepted_at" = '2013-10-03 08:48:07.710408' WHERE "proposal_tokens"."id" = 1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+----------------------------------------------------------------------
+ProposalTest: test_should_add_errors_when_not_acceptable_accepted_safe
+----------------------------------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.712617') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.714138') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:48:07 UTC +00:00], ["proposable_type", "User"], ["token", "dZCUaCUyGxJpeJEubyxQ"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "proposal_tokens" SET "updated_at" = '2013-10-03 08:48:07.716019', "accepted_at" = '2013-10-03 08:48:07.716019' WHERE "proposal_tokens"."id" = 1
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+----------------------------------------------------------------
+ProposalTest: test_should_add_errors_when_not_acceptable_expired
+----------------------------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.717902') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.719211') LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:48:07 UTC +00:00], ["proposable_type", "User"], ["token", "vmgJ1gUiFJNp4cPpzJq9"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------------------
+ProposalTest: test_should_create_a_new_token_if_accepted_token_exists
+---------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.2ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.733448') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.735276') LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:48:07 UTC +00:00], ["proposable_type", "User"], ["resource_id", 1], ["resource_type", "Project"], ["token", "SgbFkaHz3SsBvZM969sF"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "proposal_tokens" SET "updated_at" = '2013-10-03 08:48:07.736876', "accepted_at" = '2013-10-03 08:48:07.736876' WHERE "proposal_tokens"."id" = 1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.737375') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.738722') LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:48:07 UTC +00:00], ["proposable_type", "User"], ["resource_id", 1], ["resource_type", "Project"], ["token", "7iHsT4yxcV1b8DgGtsru"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+-----------------------------------------------------
+ProposalTest: test_should_create_valid_proposal_token
+-----------------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.742051') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.743539') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:48:07 UTC +00:00], ["proposable_type", "User"], ["token", "JEy1zMsGwrPx18Ev2dyZ"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+--------------------------------------------------
+ProposalTest: test_should_find_and_accept_proposal
+--------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.747197') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.748579') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:48:07 UTC +00:00], ["proposable_type", "User"], ["token", "zz8zfG14opfLzhqc1zDW"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."token" = 'zz8zfG14opfLzhqc1zDW' LIMIT 1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "proposal_tokens" SET "updated_at" = '2013-10-03 08:48:07.751330', "accepted_at" = '2013-10-03 08:48:07.751330' WHERE "proposal_tokens"."id" = 1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+------------------------------------------------------------------
+ProposalTest: test_should_have_action_remind_for_invite_(new_user)
+------------------------------------------------------------------
+ [1m[35mProposal::Token Load (0.2ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.752874') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.754351') LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:48:07 UTC +00:00], ["proposable_type", "User"], ["token", "PjsQF3TnbWySJRNG6cz3"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.756354') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-----------------------------------------------------------------------
+ProposalTest: test_should_have_action_remind_for_notify_(existing_user)
+-----------------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.764292') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.765733') LIMIT 1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:48:07 UTC +00:00], ["proposable_type", "User"], ["token", "RysRYwciDsmRbycnanrr"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.767608') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------
+ProposalTest: test_should_not_create_a_new_token_if_token_exists
+----------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.772306') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 03 Oct 2014 08:48:07 UTC +00:00], ["proposable_type", "User"], ["token", "z3zEvRXdTHqk9ykBBdpL"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.774794') LIMIT 1[0m
+ [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+----------------------------------------------------------
+ProposalTest: test_should_not_return_no_action_if_accepted
+----------------------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.776427') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.778043') LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:48:07 UTC +00:00], ["proposable_type", "User"], ["token", "sGxmo1Qzvzcdv9QA87Bj"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m UPDATE "proposal_tokens" SET "updated_at" = '2013-10-03 08:48:07.779749', "accepted_at" = '2013-10-03 08:48:07.779749' WHERE "proposal_tokens"."id" = 1
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+-----------------------------------------------------------
+ProposalTest: test_should_not_return_proposal_action_invite
+-----------------------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.781663') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.782833') LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.784158') LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-----------------------------------------------------------
+ProposalTest: test_should_not_return_proposal_action_notify
+-----------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.786557') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.787640') LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.788886') LIMIT 1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+------------------------------------------------------
+ProposalTest: test_should_not_return_proposal_instance
+------------------------------------------------------
+ [1m[36mProposal::Token Load (0.3ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.790661') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-----------------------------------------------------------
+ProposalTest: test_should_raise_error_if_remind_is_not_true
+-----------------------------------------------------------
+ [1m[35mProposal::Token Load (0.2ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.793317') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.794558') LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+--------------------------------------------------
+ProposalTest: test_should_respond_to_the_recipient
+--------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.797036') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+ProposalTest: test_should_respond_to_the_resource
+-------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.801259') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+----------------------------------------------
+ProposalTest: test_should_return_all_arguments
+----------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.803042') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.804347') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", "---\n- admin\n- 1\n"], ["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:48:07 UTC +00:00], ["proposable_type", "User"], ["token", "SnvjsbJksQvXWsTJtqwk"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."token" = 'SnvjsbJksQvXWsTJtqwk' LIMIT 1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+-------------------------------------------------------
+ProposalTest: test_should_return_all_proposals_for_type
+-------------------------------------------------------
+ [1m[36mProposal::Token Load (0.3ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.808029') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.810018') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:48:07 UTC +00:00], ["proposable_type", "User"], ["token", "ZtLAByKd7PBi852p3yXG"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = 'User'
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+------------------------------------------------------------
+ProposalTest: test_should_return_hash_when_arguments_is_hash
+------------------------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.813290') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.815141') LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", "---\n:role: admin\n"], ["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:48:07 UTC +00:00], ["proposable_type", "User"], ["token", "vtNzwfUPQxEq65hqEmxY"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."token" = 'vtNzwfUPQxEq65hqEmxY' LIMIT 1
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+--------------------------------------------------
+ProposalTest: test_should_return_proposal_instance
+--------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.820553') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.822147') LIMIT 1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+----------------------------------------------------------------
+ProposalTest: test_should_return_proposals_for_proposer_instance
+----------------------------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.2ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.824912') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.826478') LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "proposer_id", "proposer_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:48:07 UTC +00:00], ["proposable_type", "User"], ["proposer_id", 1], ["proposer_type", "User"], ["token", "RByaDgqbGksLhn6oeqpk"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."proposer_type" = 'User' AND "proposal_tokens"."proposer_id" = 1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+----------------------------------------------------------------
+ProposalTest: test_should_return_proposals_for_resource_instance
+----------------------------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.2ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.832407') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.834050') LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "resource_id", "resource_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:48:07 UTC +00:00], ["proposable_type", "User"], ["resource_id", 1], ["resource_type", "Project"], ["token", "nrMj5rCcqxtjVZxcSQtE"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+---------------------------------------------
+ProposalTest: test_should_return_the_resource
+---------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "projects" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" = 'Project' AND "proposal_tokens"."resource_id" = 1 AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.838157') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+-------------------------------------------------------
+ProposalTest: test_should_return_token_from_to_s_method
+-------------------------------------------------------
+ [1m[35mProposal::Token Load (0.2ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.839969') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.841335') LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:48:07 UTC +00:00], ["proposable_type", "User"], ["token", "Jg5g2RsBDBqPoguES7Wh"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+-------------------------------------------
+ProposalTest: test_should_set_reminded_bang
+-------------------------------------------
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.844988') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.846283') LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:48:07 UTC +00:00], ["proposable_type", "User"], ["token", "s6PkmQw2osqLx1xBsnw4"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.847896') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "proposal_tokens" SET "updated_at" = '2013-10-03 08:48:07.849660', "reminded_at" = '2013-10-03 08:48:07.849660' WHERE "proposal_tokens"."id" = 1[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-------------------------------------------
+ProposalTest: test_should_set_reminded_safe
+-------------------------------------------
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.853112') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mProposal::Token Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.854804') LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "proposal_tokens" ("arguments", "created_at", "email", "expires_at", "proposable_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["arguments", nil], ["created_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00], ["email", "user@example.com"], ["expires_at", Fri, 04 Oct 2013 08:48:07 UTC +00:00], ["proposable_type", "User"], ["token", "zRV7asX1mHwTh85N4uV9"], ["updated_at", Thu, 03 Oct 2013 08:48:07 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mProposal::Token Load (0.1ms)[0m SELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.856538') ORDER BY "proposal_tokens"."id" ASC LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'user@example.com' ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "proposal_tokens" SET "updated_at" = '2013-10-03 08:48:07.857979', "reminded_at" = '2013-10-03 08:48:07.857979' WHERE "proposal_tokens"."id" = 1
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+--------------------------------------------------------
+ProposalTest: test_should_validate_arguments_with_a_proc
+--------------------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.860206') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.861529') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+--------------------------------------------------------
+ProposalTest: test_should_validate_arguments_with_symbol
+--------------------------------------------------------
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.862584') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.863704') LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+-----------------------------------------------------------------
+ProposalTest: test_should_validate_arguments_with_symbol_and_args
+-----------------------------------------------------------------
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.864704') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.865829') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+---------------------------------------------------------
+ProposalTest: test_should_validate_arguments_with_symbols
+---------------------------------------------------------
+ [1m[36mProposal::Token Load (0.2ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.866853') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35mProposal::Token Exists (0.1ms)[0m SELECT 1 AS one FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND "proposal_tokens"."resource_type" IS NULL AND "proposal_tokens"."resource_id" IS NULL AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.868040') LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+------------------------
+ProposalTest: test_truth
+------------------------
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+--------------------------------------------
+ProposalTest: test_user_should_have_proposal
+--------------------------------------------
+ [1m[36mProposal::Token Load (0.1ms)[0m [1mSELECT "proposal_tokens".* FROM "proposal_tokens" WHERE "proposal_tokens"."email" = 'user@example.com' AND "proposal_tokens"."proposable_type" = 'User' AND (accepted_at IS NULL) AND (expires_at > '2013-10-03 08:48:07.869445') ORDER BY "proposal_tokens"."id" ASC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m rollback transaction